Shard.fromJson constructor

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

Implementation

factory Shard.fromJson(Map<String, dynamic> json) {
  return Shard(
    hashKeyRange:
        HashKeyRange.fromJson(json['HashKeyRange'] as Map<String, dynamic>),
    sequenceNumberRange: SequenceNumberRange.fromJson(
        json['SequenceNumberRange'] as Map<String, dynamic>),
    shardId: json['ShardId'] as String,
    adjacentParentShardId: json['AdjacentParentShardId'] as String?,
    parentShardId: json['ParentShardId'] as String?,
  );
}