PartitionResponse.fromJson constructor

PartitionResponse.fromJson(
  1. Map json_
)

Implementation

PartitionResponse.fromJson(core.Map json_)
    : this(
        partitions: json_.containsKey('partitions')
            ? (json_['partitions'] as core.List)
                .map((value) => Partition.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        transaction: json_.containsKey('transaction')
            ? Transaction.fromJson(
                json_['transaction'] as core.Map<core.String, core.dynamic>)
            : null,
      );