mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-18 10:11:03 +00:00
19 lines
No EOL
437 B
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']);
|
|
}
|
|
} |