Replication.fromJson constructor
Replication.fromJson(
- Map json_
Implementation
Replication.fromJson(core.Map json_)
: this(
replicas: json_.containsKey('replicas')
? (json_['replicas'] as core.List)
.map((value) => ReplicaConfig.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
role: json_.containsKey('role') ? json_['role'] as core.String : null,
);