StatusModel.fromJson constructor
Implementation
StatusModel.fromJson(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
emoji = json['emoji'];
emojiU = json['emojiU'];
if (json['state'] != null) {
state = <State>[];
json['state'].forEach((v) {
state!.add(new State.fromJson(v));
});
}
}