ReplicaConfig.fromJson constructor
ReplicaConfig.fromJson(
- Map json_
Implementation
ReplicaConfig.fromJson(core.Map json_)
: this(
lastActiveSyncTime: json_.containsKey('lastActiveSyncTime')
? json_['lastActiveSyncTime'] as core.String
: null,
peerInstance: json_.containsKey('peerInstance')
? json_['peerInstance'] as core.String
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
stateReasons: json_.containsKey('stateReasons')
? (json_['stateReasons'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
);