stack_wallet/lib/dto/ordinals/content_response.dart

19 lines
428 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']));
}
}
class FileLink {
final String href;
FileLink({required this.href});
factory FileLink.fromJson(Map<String, dynamic> json) {
return FileLink(href: json['href']);
}
}