stack_wallet/lib/dto/ordinals/preview_response.dart

19 lines
No EOL
437 B
Dart

class PreviewResponse {
final ImageLink imageLink;
PreviewResponse({required this.imageLink});
factory PreviewResponse.fromJson(Map<String, dynamic> json) {
return PreviewResponse(imageLink: ImageLink.fromJson(json['_links']['image']));
}
}
class ImageLink {
final String href;
ImageLink({required this.href});
factory ImageLink.fromJson(Map<String, dynamic> json) {
return ImageLink(href: json['href']);
}
}