import 'package:stackwallet/dto/ordinals/inscription_link.dart'; import 'package:stackwallet/dto/ordinals/ordinals_response.dart'; class FeedResponse extends OrdinalsResponse { final List inscriptions; FeedResponse({required this.inscriptions}); factory FeedResponse.fromJson(OrdinalsResponse json) { final List inscriptionsJson = json.data['_links']['inscriptions'] as List; final List inscriptions = inscriptionsJson .map((json) => InscriptionLink.fromJson(json as Map)) .toList(); return FeedResponse(inscriptions: inscriptions); } }