You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/// name : "百花谷"
|
|
|
|
/// avatar : "https://pos.upload.gznl.top/MDAwMA==/2021/06/6a3586dc-a340-470f-b645-1e3155d5f558.jpg"
|
|
|
|
|
|
|
|
class Author {
|
|
|
|
String? name;
|
|
|
|
String? avatar;
|
|
|
|
|
|
|
|
Author();
|
|
|
|
|
|
|
|
Author.fromJson(dynamic json) {
|
|
|
|
this.name = json["name"];
|
|
|
|
this.avatar = json["avatar"];
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
var map = <String, dynamic>{};
|
|
|
|
map["name"] = this.name;
|
|
|
|
map["avatar"] = this.avatar;
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|