18 lines
366 B
Dart
18 lines
366 B
Dart
class Post {
|
|
int? albumId;
|
|
int? id;
|
|
String? title;
|
|
String? url;
|
|
String? thumbnailUrl;
|
|
|
|
Post({this.albumId, this.id, this.title, this.url, this.thumbnailUrl});
|
|
|
|
Post.fromJson(Map<String, dynamic> json) {
|
|
albumId = json['albumId'];
|
|
id = json['id'];
|
|
title = json['title'];
|
|
url = json['url'];
|
|
thumbnailUrl = json['thumbnailUrl'];
|
|
}
|
|
}
|