OTABean.fromJson constructor
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,
);