Routine.fromJson constructor

Routine.fromJson(
  1. Map json_
)

Implementation

Routine.fromJson(core.Map json_)
    : this(
        arguments: json_.containsKey('arguments')
            ? (json_['arguments'] as core.List)
                .map((value) => Argument.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        creationTime: json_.containsKey('creationTime')
            ? json_['creationTime'] as core.String
            : null,
        dataGovernanceType: json_.containsKey('dataGovernanceType')
            ? json_['dataGovernanceType'] as core.String
            : null,
        definitionBody: json_.containsKey('definitionBody')
            ? json_['definitionBody'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        determinismLevel: json_.containsKey('determinismLevel')
            ? json_['determinismLevel'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        importedLibraries: json_.containsKey('importedLibraries')
            ? (json_['importedLibraries'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        language: json_.containsKey('language')
            ? json_['language'] as core.String
            : null,
        lastModifiedTime: json_.containsKey('lastModifiedTime')
            ? json_['lastModifiedTime'] as core.String
            : null,
        remoteFunctionOptions: json_.containsKey('remoteFunctionOptions')
            ? RemoteFunctionOptions.fromJson(json_['remoteFunctionOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
        returnTableType: json_.containsKey('returnTableType')
            ? StandardSqlTableType.fromJson(json_['returnTableType']
                as core.Map<core.String, core.dynamic>)
            : null,
        returnType: json_.containsKey('returnType')
            ? StandardSqlDataType.fromJson(
                json_['returnType'] as core.Map<core.String, core.dynamic>)
            : null,
        routineReference: json_.containsKey('routineReference')
            ? RoutineReference.fromJson(json_['routineReference']
                as core.Map<core.String, core.dynamic>)
            : null,
        routineType: json_.containsKey('routineType')
            ? json_['routineType'] as core.String
            : null,
        securityMode: json_.containsKey('securityMode')
            ? json_['securityMode'] as core.String
            : null,
        sparkOptions: json_.containsKey('sparkOptions')
            ? SparkOptions.fromJson(
                json_['sparkOptions'] as core.Map<core.String, core.dynamic>)
            : null,
        strictMode: json_.containsKey('strictMode')
            ? json_['strictMode'] as core.bool
            : null,
      );