Operation.fromJson constructor

Operation.fromJson(
  1. Map json_
)

Implementation

Operation.fromJson(core.Map json_)
    : this(
        clientOperationId: json_.containsKey('clientOperationId')
            ? json_['clientOperationId'] as core.String
            : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        endTime: json_.containsKey('endTime')
            ? json_['endTime'] as core.String
            : null,
        error: json_.containsKey('error')
            ? OperationError.fromJson(
                json_['error'] as core.Map<core.String, core.dynamic>)
            : null,
        httpErrorMessage: json_.containsKey('httpErrorMessage')
            ? json_['httpErrorMessage'] as core.String
            : null,
        httpErrorStatusCode: json_.containsKey('httpErrorStatusCode')
            ? json_['httpErrorStatusCode'] as core.int
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        insertTime: json_.containsKey('insertTime')
            ? json_['insertTime'] as core.String
            : null,
        instancesBulkInsertOperationMetadata:
            json_.containsKey('instancesBulkInsertOperationMetadata')
                ? InstancesBulkInsertOperationMetadata.fromJson(
                    json_['instancesBulkInsertOperationMetadata']
                        as core.Map<core.String, core.dynamic>)
                : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        operationGroupId: json_.containsKey('operationGroupId')
            ? json_['operationGroupId'] as core.String
            : null,
        operationType: json_.containsKey('operationType')
            ? json_['operationType'] as core.String
            : null,
        progress: json_.containsKey('progress')
            ? json_['progress'] as core.int
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        setCommonInstanceMetadataOperationMetadata:
            json_.containsKey('setCommonInstanceMetadataOperationMetadata')
                ? SetCommonInstanceMetadataOperationMetadata.fromJson(
                    json_['setCommonInstanceMetadataOperationMetadata']
                        as core.Map<core.String, core.dynamic>)
                : null,
        startTime: json_.containsKey('startTime')
            ? json_['startTime'] as core.String
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        statusMessage: json_.containsKey('statusMessage')
            ? json_['statusMessage'] as core.String
            : null,
        targetId: json_.containsKey('targetId')
            ? json_['targetId'] as core.String
            : null,
        targetLink: json_.containsKey('targetLink')
            ? json_['targetLink'] as core.String
            : null,
        user: json_.containsKey('user') ? json_['user'] as core.String : null,
        warnings: json_.containsKey('warnings')
            ? (json_['warnings'] as core.List)
                .map((value) => OperationWarnings.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
      );