StreamObject.fromJson constructor

StreamObject.fromJson(
  1. Map json_
)

Implementation

StreamObject.fromJson(core.Map json_)
    : this(
        backfillJob: json_.containsKey('backfillJob')
            ? BackfillJob.fromJson(
                json_['backfillJob'] as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : 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,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        sourceObject: json_.containsKey('sourceObject')
            ? SourceObjectIdentifier.fromJson(
                json_['sourceObject'] as core.Map<core.String, core.dynamic>)
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );