2024-05-23 00:37:06 +00:00
|
|
|
import 'inscription_data.dart';
|
2024-05-27 23:56:22 +00:00
|
|
|
import 'litescribe_response.dart';
|
2023-07-20 19:38:56 +00:00
|
|
|
|
2024-05-27 23:56:22 +00:00
|
|
|
class AddressInscriptionResponse
|
|
|
|
extends LitescribeResponse<AddressInscriptionResponse> {
|
2023-07-20 19:38:56 +00:00
|
|
|
final int status;
|
|
|
|
final String message;
|
|
|
|
final AddressInscriptionResult result;
|
|
|
|
|
|
|
|
AddressInscriptionResponse({
|
|
|
|
required this.status,
|
|
|
|
required this.message,
|
|
|
|
required this.result,
|
|
|
|
});
|
|
|
|
|
|
|
|
factory AddressInscriptionResponse.fromJson(Map<String, dynamic> json) {
|
|
|
|
return AddressInscriptionResponse(
|
|
|
|
status: json['status'] as int,
|
|
|
|
message: json['message'] as String,
|
2024-05-27 23:56:22 +00:00
|
|
|
result: AddressInscriptionResult.fromJson(
|
|
|
|
json['result'] as Map<String, dynamic>),
|
2023-07-20 19:38:56 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class AddressInscriptionResult {
|
2023-07-20 21:30:39 +00:00
|
|
|
final List<InscriptionData> list;
|
2023-07-20 19:38:56 +00:00
|
|
|
final int total;
|
|
|
|
|
|
|
|
AddressInscriptionResult({
|
|
|
|
required this.list,
|
|
|
|
required this.total,
|
|
|
|
});
|
|
|
|
|
|
|
|
factory AddressInscriptionResult.fromJson(Map<String, dynamic> json) {
|
|
|
|
return AddressInscriptionResult(
|
2024-05-27 23:56:22 +00:00
|
|
|
list: (json['list'] as List)
|
|
|
|
.map((item) => InscriptionData.fromJson(item as Map<String, dynamic>))
|
|
|
|
.toList(),
|
2023-07-20 19:38:56 +00:00
|
|
|
total: json['total'] as int,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|