InstanceTemplate.fromJson constructor

InstanceTemplate.fromJson(
  1. Map json_
)

Implementation

InstanceTemplate.fromJson(core.Map json_)
    : this(
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        properties: json_.containsKey('properties')
            ? InstanceProperties.fromJson(
                json_['properties'] as core.Map<core.String, core.dynamic>)
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        sourceInstance: json_.containsKey('sourceInstance')
            ? json_['sourceInstance'] as core.String
            : null,
        sourceInstanceParams: json_.containsKey('sourceInstanceParams')
            ? SourceInstanceParams.fromJson(json_['sourceInstanceParams']
                as core.Map<core.String, core.dynamic>)
            : null,
      );