ServerAddressByClientCIDR.fromJson constructor

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

Creates a ServerAddressByClientCIDR from JSON data.

Implementation

factory ServerAddressByClientCIDR.fromJson(Map<String, dynamic> json) {
  final tempClientCIDRJson = json['clientCIDR'];
  final tempServerAddressJson = json['serverAddress'];

  final String tempClientCIDR = tempClientCIDRJson;
  final String tempServerAddress = tempServerAddressJson;

  return ServerAddressByClientCIDR(
    clientCIDR: tempClientCIDR,
    serverAddress: tempServerAddress,
  );
}