import 'package:stackwallet/dto/ordinals/litescribe_response.dart'; import 'package:stackwallet/dto/ordinals/inscription_data.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, ); } }