refa: article (#757)

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
dom
2025-04-26 14:54:22 +08:00
committed by GitHub
parent 64f7ba2a1a
commit 40fb93f036
87 changed files with 2628 additions and 993 deletions

View File

@@ -0,0 +1,26 @@
import 'fallback.dart';
import 'item.dart';
class OpusData {
Item? item;
Fallback? fallback;
OpusData({
this.item,
this.fallback,
});
factory OpusData.fromJson(Map<String, dynamic> json) => OpusData(
item: json['item'] == null
? null
: Item.fromJson(json['item'] as Map<String, dynamic>),
fallback: json['fallback'] == null
? null
: Fallback.fromJson(json['fallback']),
);
Map<String, dynamic> toJson() => {
'item': item?.toJson(),
'fallback': fallback?.toJson(),
};
}