mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-09 03:27:46 +08:00
refa: article (#757)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
17
lib/models/dynamics/opus_detail/avatar_icon.dart
Normal file
17
lib/models/dynamics/opus_detail/avatar_icon.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
import 'icon_resource.dart';
|
||||
|
||||
class AvatarIcon {
|
||||
IconResource? iconResource;
|
||||
|
||||
AvatarIcon({this.iconResource});
|
||||
|
||||
factory AvatarIcon.fromJson(Map<String, dynamic> json) => AvatarIcon(
|
||||
iconResource: json['icon_resource'] == null
|
||||
? null
|
||||
: IconResource.fromJson(json['icon_resource'] as Map<String, dynamic>),
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'icon_resource': iconResource?.toJson(),
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user