mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 11:22:16 +08:00
@@ -9,12 +9,13 @@ class SpaceFavData {
|
||||
SpaceFavData({this.id, this.name, this.mediaListResponse, this.uri});
|
||||
|
||||
factory SpaceFavData.fromJson(Map<String, dynamic> json) => SpaceFavData(
|
||||
id: json['id'] as int?,
|
||||
name: json['name'] as String?,
|
||||
mediaListResponse: json['mediaListResponse'] == null
|
||||
? null
|
||||
: MediaListResponse.fromJson(
|
||||
json['mediaListResponse'] as Map<String, dynamic>),
|
||||
uri: json['uri'] as String?,
|
||||
);
|
||||
id: json['id'] as int?,
|
||||
name: json['name'] as String?,
|
||||
mediaListResponse: json['mediaListResponse'] == null
|
||||
? null
|
||||
: MediaListResponse.fromJson(
|
||||
json['mediaListResponse'] as Map<String, dynamic>,
|
||||
),
|
||||
uri: json['uri'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user