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,
      );