StatusModel.fromJson constructor

StatusModel.fromJson(
  1. Map<String, dynamic> json
)

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));
    });
  }
}