mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-24 12:32:40 +08:00
Refactor member page (#3)
* refactor: member page * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
This commit is contained in:
19
lib/models/space_fav/datum.dart
Normal file
19
lib/models/space_fav/datum.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
import 'media_list_response.dart';
|
||||
|
||||
part 'datum.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class Datum {
|
||||
int? id;
|
||||
String? name;
|
||||
MediaListResponse? mediaListResponse;
|
||||
String? uri;
|
||||
|
||||
Datum({this.id, this.name, this.mediaListResponse, this.uri});
|
||||
|
||||
factory Datum.fromJson(Map<String, dynamic> json) => _$DatumFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$DatumToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user