NetworkEndpoint.fromJson constructor

NetworkEndpoint.fromJson(
  1. Map json_
)

Implementation

NetworkEndpoint.fromJson(core.Map json_)
    : this(
        annotations: json_.containsKey('annotations')
            ? (json_['annotations'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        fqdn: json_.containsKey('fqdn') ? json_['fqdn'] as core.String : null,
        instance: json_.containsKey('instance')
            ? json_['instance'] as core.String
            : null,
        ipAddress: json_.containsKey('ipAddress')
            ? json_['ipAddress'] as core.String
            : null,
        port: json_.containsKey('port') ? json_['port'] as core.int : null,
      );