InstanceWithNamedPorts.fromJson constructor

InstanceWithNamedPorts.fromJson(
  1. Map json_
)

Implementation

InstanceWithNamedPorts.fromJson(core.Map json_)
    : this(
        instance: json_.containsKey('instance')
            ? json_['instance'] as core.String
            : null,
        namedPorts: json_.containsKey('namedPorts')
            ? (json_['namedPorts'] as core.List)
                .map((value) => NamedPort.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
      );