import 'inscription_data.dart'; import 'litescribe_response.dart'; class AddressInscriptionResponse extends LitescribeResponse { final int status; final String message; final AddressInscriptionResult result; AddressInscriptionResponse({ required this.status, required this.message, required this.result, }); factory AddressInscriptionResponse.fromJson(Map json) { return AddressInscriptionResponse( status: json['status'] as int, message: json['message'] as String, result: AddressInscriptionResult.fromJson( json['result'] as Map), ); } } class AddressInscriptionResult { final List list; final int total; AddressInscriptionResult({ required this.list, required this.total, }); factory AddressInscriptionResult.fromJson(Map json) { return AddressInscriptionResult( list: (json['list'] as List) .map((item) => InscriptionData.fromJson(item as Map)) .toList(), total: json['total'] as int, ); } }