DhcpInfo.fromMap constructor

DhcpInfo.fromMap(
  1. Map map
)

Implementation

factory DhcpInfo.fromMap(Map<dynamic, dynamic> map) {
  return DhcpInfo(
      dns1: map['dns_1'].toString(),
      dns2: map['dns_2'].toString(),
      gateway: map['gateway'].toString(),
      leaseDuration: map['lease_duration'].toString(),
      netMask: map['net_mask'].toString(),
      ip: map['ip_address'].toString(),
      serverAddress: map['server_address'].toString(),
      gatewayIp: map['gateway_ip'].toString().split('').reversed.join(''));
}