ChildShard.fromJson constructor

ChildShard.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ChildShard.fromJson(Map<String, dynamic> json) {
  return ChildShard(
    hashKeyRange:
        HashKeyRange.fromJson(json['HashKeyRange'] as Map<String, dynamic>),
    parentShards: (json['ParentShards'] as List)
        .whereNotNull()
        .map((e) => e as String)
        .toList(),
    shardId: json['ShardId'] as String,
  );
}