Files
PiliPlus/lib/models/dynamics/opus_detail/resource.dart
dom 40fb93f036 refa: article (#757)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-04-26 14:54:22 +08:00

21 lines
465 B
Dart

import 'res_image.dart';
class Resource {
ResImage? resImage;
int? resType;
Resource({this.resImage, this.resType});
factory Resource.fromJson(Map<String, dynamic> json) => Resource(
resImage: json['res_image'] == null
? null
: ResImage.fromJson(json['res_image'] as Map<String, dynamic>),
resType: json['res_type'] as int?,
);
Map<String, dynamic> toJson() => {
'res_image': resImage?.toJson(),
'res_type': resType,
};
}