GoogleCloudDatacatalogV1RoutineSpec.fromJson constructor

GoogleCloudDatacatalogV1RoutineSpec.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDatacatalogV1RoutineSpec.fromJson(core.Map json_)
    : this(
        bigqueryRoutineSpec: json_.containsKey('bigqueryRoutineSpec')
            ? GoogleCloudDatacatalogV1BigQueryRoutineSpec.fromJson(
                json_['bigqueryRoutineSpec']
                    as core.Map<core.String, core.dynamic>)
            : null,
        definitionBody: json_.containsKey('definitionBody')
            ? json_['definitionBody'] as core.String
            : null,
        language: json_.containsKey('language')
            ? json_['language'] as core.String
            : null,
        returnType: json_.containsKey('returnType')
            ? json_['returnType'] as core.String
            : null,
        routineArguments: json_.containsKey('routineArguments')
            ? (json_['routineArguments'] as core.List)
                .map((value) =>
                    GoogleCloudDatacatalogV1RoutineSpecArgument.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        routineType: json_.containsKey('routineType')
            ? json_['routineType'] as core.String
            : null,
      );