stack_wallet/lib/dto/ordinals/content_response.dart
2023-07-19 10:51:46 -05:00

19 lines
462 B
Dart

class ContentResponse {
final FileLink fileLink;
ContentResponse({required this.fileLink});
factory ContentResponse.fromJson(Map<String, dynamic> json) {
return ContentResponse(fileLink: FileLink.fromJson(json['_links']['file'] as Map<String, dynamic>));
}
}
class FileLink {
final String href;
FileLink({required this.href});
factory FileLink.fromJson(Map<String, dynamic> json) {
return FileLink(href: json['href'] as String);
}
}