DataSource.fromJson constructor

DataSource.fromJson(
  1. Map json_
)

Implementation

DataSource.fromJson(core.Map json_)
    : this(
        disableModifications: json_.containsKey('disableModifications')
            ? json_['disableModifications'] as core.bool
            : null,
        disableServing: json_.containsKey('disableServing')
            ? json_['disableServing'] as core.bool
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        indexingServiceAccounts: json_.containsKey('indexingServiceAccounts')
            ? (json_['indexingServiceAccounts'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        itemsVisibility: json_.containsKey('itemsVisibility')
            ? (json_['itemsVisibility'] as core.List)
                .map((value) => GSuitePrincipal.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        operationIds: json_.containsKey('operationIds')
            ? (json_['operationIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        returnThumbnailUrls: json_.containsKey('returnThumbnailUrls')
            ? json_['returnThumbnailUrls'] as core.bool
            : null,
        shortName: json_.containsKey('shortName')
            ? json_['shortName'] as core.String
            : null,
      );