Stream.fromJson constructor

Stream.fromJson(
  1. Map _json
)

Implementation

Stream.fromJson(core.Map _json)
    : this(
        backfillAll: _json.containsKey('backfillAll')
            ? BackfillAllStrategy.fromJson(
                _json['backfillAll'] as core.Map<core.String, core.dynamic>)
            : null,
        backfillNone: _json.containsKey('backfillNone')
            ? BackfillNoneStrategy.fromJson(
                _json['backfillNone'] as core.Map<core.String, core.dynamic>)
            : null,
        createTime: _json.containsKey('createTime')
            ? _json['createTime'] as core.String
            : null,
        destinationConfig: _json.containsKey('destinationConfig')
            ? DestinationConfig.fromJson(_json['destinationConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        displayName: _json.containsKey('displayName')
            ? _json['displayName'] as core.String
            : null,
        errors: _json.containsKey('errors')
            ? (_json['errors'] as core.List)
                .map((value) => Error.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        labels: _json.containsKey('labels')
            ? (_json['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, item) => core.MapEntry(
                  key,
                  item as core.String,
                ),
              )
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        sourceConfig: _json.containsKey('sourceConfig')
            ? SourceConfig.fromJson(
                _json['sourceConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        state:
            _json.containsKey('state') ? _json['state'] as core.String : null,
        updateTime: _json.containsKey('updateTime')
            ? _json['updateTime'] as core.String
            : null,
      );