mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-12 05:34:31 +00:00
20 lines
428 B
Dart
20 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']);
|
||
|
}
|
||
|
}
|