Replication.fromJson constructor

Replication.fromJson(
  1. Map json_
)

Implementation

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