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,23 @@
import 'remote.dart';
class ImageSrc {
int? placeholder;
Remote? remote;
int? srcType;
ImageSrc({this.placeholder, this.remote, this.srcType});
factory ImageSrc.fromJson(Map<String, dynamic> json) => ImageSrc(
placeholder: json['placeholder'] as int?,
remote: json['remote'] == null
? null
: Remote.fromJson(json['remote'] as Map<String, dynamic>),
srcType: json['src_type'] as int?,
);
Map<String, dynamic> toJson() => {
'placeholder': placeholder,
'remote': remote?.toJson(),
'src_type': srcType,
};
}