Replication_UserManaged.fromJson constructor

Replication_UserManaged.fromJson(
  1. Object? j
)

Implementation

factory Replication_UserManaged.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return Replication_UserManaged(
    replicas: switch (json['replicas']) {
      null => [],
      List<Object?> $1 => [
        for (final i in $1) Replication_UserManaged_Replica.fromJson(i),
      ],
      _ => throw const FormatException('"replicas" is not a list'),
    },
  );
}