fromJson static method
dynamic
fromJson(
- Map<String, dynamic> json
)
Implementation
static fromJson(Map<String, dynamic> json) {
var msg = MndpMessage();
msg.type = json['type'];
msg.ttl = json['ttl'];
msg.sequence = json['sequence'];
msg.macAddress = json['mac_address'];
msg.identity = json['identity'];
msg.version = json['version'];
msg.platform = json['platform'];
msg.uptime = Duration(seconds: json['uptime'] as int? ?? 0);
msg.softwareId = json['software_id'];
msg.boardName = json['board_name'];
msg.unpack = json['unpack'];
msg.interfaceName = json['interface_name'];
msg.unicastIpv6Address = json['unicast_ipv6_address'];
msg.unicastIpv4Address = json['unicast_ipv4_address'];
return msg;
}