BulkCheckRequest.fromJson constructor

BulkCheckRequest.fromJson(
  1. Map json_
)

Implementation

BulkCheckRequest.fromJson(core.Map json_)
    : this(
        allowGoogleInternalDataSources:
            json_.containsKey('allowGoogleInternalDataSources')
                ? json_['allowGoogleInternalDataSources'] as core.bool
                : null,
        defaultRelation: json_.containsKey('defaultRelation')
            ? json_['defaultRelation'] as core.String
            : null,
        defaultSource: json_.containsKey('defaultSource')
            ? Asset.fromJson(
                json_['defaultSource'] as core.Map<core.String, core.dynamic>)
            : null,
        defaultTarget: json_.containsKey('defaultTarget')
            ? Asset.fromJson(
                json_['defaultTarget'] as core.Map<core.String, core.dynamic>)
            : null,
        skipCacheLookup: json_.containsKey('skipCacheLookup')
            ? json_['skipCacheLookup'] as core.bool
            : null,
        statements: json_.containsKey('statements')
            ? (json_['statements'] as core.List)
                .map((value) => StatementTemplate.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );