mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-18 02:07:43 +00:00
19 lines
428 B
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']);
|
|
}
|
|
}
|