CreateInstanceRequest.fromJson constructor

CreateInstanceRequest.fromJson(
  1. Map json_
)

Implementation

CreateInstanceRequest.fromJson(core.Map json_)
    : this(
        clusters: json_.containsKey('clusters')
            ? (json_['clusters'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  Cluster.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        instance: json_.containsKey('instance')
            ? Instance.fromJson(
                json_['instance'] as core.Map<core.String, core.dynamic>)
            : null,
        instanceId: json_.containsKey('instanceId')
            ? json_['instanceId'] as core.String
            : null,
        parent: json_.containsKey('parent')
            ? json_['parent'] as core.String
            : null,
      );