You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.1 KiB
Dart
45 lines
1.1 KiB
Dart
|
2 years ago
|
class PendingAssetServiceRequest {
|
||
|
|
String headerMessage;
|
||
|
|
List<Details> details;
|
||
|
|
|
||
|
|
PendingAssetServiceRequest({this.headerMessage, this.details});
|
||
|
|
|
||
|
|
PendingAssetServiceRequest.fromJson(Map<String, dynamic> json) {
|
||
|
|
headerMessage = json['headerMessage'];
|
||
|
|
details = <Details>[];
|
||
|
|
if (json['details'] != null) {
|
||
|
|
json['details'].forEach((v) {
|
||
|
|
details.add(new Details.fromJson(v));
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
Map<String, dynamic> toJson() {
|
||
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||
|
|
data['headerMessage'] = this.headerMessage;
|
||
|
|
if (this.details != null) {
|
||
|
|
data['details'] = this.details.map((v) => v.toJson()).toList();
|
||
|
|
}
|
||
|
|
return data;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
class Details {
|
||
|
|
int id;
|
||
|
|
String message;
|
||
|
|
|
||
|
|
Details({this.id, this.message});
|
||
|
|
|
||
|
|
Details.fromJson(Map<String, dynamic> json) {
|
||
|
|
id = json['id'];
|
||
|
|
message = json['message'];
|
||
|
|
}
|
||
|
|
|
||
|
|
Map<String, dynamic> toJson() {
|
||
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||
|
|
data['id'] = this.id;
|
||
|
|
data['message'] = this.message;
|
||
|
|
return data;
|
||
|
|
}
|
||
|
|
}
|