toJson method
Implementation
Map<String, dynamic> toJson() => {
'id': this.id,
'sn': this.sn,
'model': this.model,
'name': this.name,
'sammy': this.sammy,
'localip': this.localip,
'fw_name': this.fwName,
'fw_version': this.fwVersion,
'stats': this.stats,
'state': this.state,
'desc': this.desc,
'map_lng': this.mapLng,
'map_lat': this.mapLat,
'logo': this.logo,
'nodes': this.nodes.map((v) => v.toJson()).toList(),
'born': this.born,
'admin_id': this.adminId,
'developer_id': this.developerId,
'is_logged': this.isLogged,
'server_time': this.serverTime,
'status': this.status,
'reset': this.reset,
'restart': this.restart,
'mac': this.mac,
'options': this.options.toJson(),
'widget': this.wgt.toJson(),
'fw_update_mode': this.fwUpdateMode,
'fw_size': this.fwSize,
'fw_version_code': this.fwVersionCode
};