Line data Source code
1 : import "package:errorlookup/core/models/error_detail.dart"; 2 : import "package:json_annotation/json_annotation.dart"; 3 : 4 : part "error_details.g.dart"; 5 : 6 : @JsonSerializable() 7 : class ErrorDetails { 8 : final List<ErrorDetail> errors; 9 : 10 3 : ErrorDetails({required this.errors}); 11 : 12 3 : factory ErrorDetails.fromJson(Map<String, dynamic> json) => 13 3 : _$ErrorDetailsFromJson(json); 14 : 15 0 : Map<String, dynamic> toJson() => _$ErrorDetailsToJson(this); 16 : }