SourceSplitResponse.fromJson constructor

SourceSplitResponse.fromJson(
  1. Map json_
)

Implementation

SourceSplitResponse.fromJson(core.Map json_)
    : this(
        bundles: json_.containsKey('bundles')
            ? (json_['bundles'] as core.List)
                .map((value) => DerivedSource.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        outcome: json_.containsKey('outcome')
            ? json_['outcome'] as core.String
            : null,
        shards: json_.containsKey('shards')
            ? (json_['shards'] as core.List)
                .map((value) => SourceSplitShard.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );