NetworkInterface.fromJson constructor

NetworkInterface.fromJson(
  1. Map json_
)

Implementation

NetworkInterface.fromJson(core.Map json_)
    : this(
        accessConfigs: json_.containsKey('accessConfigs')
            ? (json_['accessConfigs'] as core.List)
                .map((value) => AccessConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        network: json_.containsKey('network')
            ? json_['network'] as core.String
            : null,
        nicType: json_.containsKey('nicType')
            ? json_['nicType'] as core.String
            : null,
        subnet: json_.containsKey('subnet')
            ? json_['subnet'] as core.String
            : null,
      );