OTABean.fromJson constructor

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

Implementation

factory OTABean.fromJson(Map<String, dynamic> json) => OTABean(
      type: json["type"],
      start: json["start"] ?? false,
      upgradeError: UpgradeErrorBean.fromJson(json["upgradeError"] ?? {}),
      upgradeProgress: json["upgradeProgress"] ?? -1,
    );