Topic.fromJson constructor

Topic.fromJson(
  1. Map json_
)

Implementation

Topic.fromJson(core.Map json_)
    : this(
        ingestionDataSourceSettings:
            json_.containsKey('ingestionDataSourceSettings')
                ? IngestionDataSourceSettings.fromJson(
                    json_['ingestionDataSourceSettings']
                        as core.Map<core.String, core.dynamic>)
                : null,
        kmsKeyName: json_.containsKey('kmsKeyName')
            ? json_['kmsKeyName'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        messageRetentionDuration:
            json_.containsKey('messageRetentionDuration')
                ? json_['messageRetentionDuration'] as core.String
                : null,
        messageStoragePolicy: json_.containsKey('messageStoragePolicy')
            ? MessageStoragePolicy.fromJson(json_['messageStoragePolicy']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        satisfiesPzs: json_.containsKey('satisfiesPzs')
            ? json_['satisfiesPzs'] as core.bool
            : null,
        schemaSettings: json_.containsKey('schemaSettings')
            ? SchemaSettings.fromJson(json_['schemaSettings']
                as core.Map<core.String, core.dynamic>)
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
      );