Line data Source code
1 : import "package:json_annotation/json_annotation.dart"; 2 : 3 : part "error_detail.g.dart"; 4 : 5 : @JsonSerializable() 6 : class ErrorDetail { 7 : final int code; 8 : final String alias; 9 : final String description; 10 : 11 4 : ErrorDetail( 12 : {required this.code, required this.alias, required this.description}); 13 : 14 4 : factory ErrorDetail.fromJson(Map<String, dynamic> json) => 15 4 : _$ErrorDetailFromJson(json); 16 : 17 0 : Map<String, dynamic> toJson() => _$ErrorDetailToJson(this); 18 : }