ReplicaInfo.fromJson constructor

ReplicaInfo.fromJson(
  1. Map json_
)

Implementation

ReplicaInfo.fromJson(core.Map json_)
    : this(
        defaultLeaderLocation: json_.containsKey('defaultLeaderLocation')
            ? json_['defaultLeaderLocation'] as core.bool
            : null,
        location: json_.containsKey('location')
            ? json_['location'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );