externaldatav1Quorum.fromJson constructor

externaldatav1Quorum.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory externaldatav1Quorum.fromJson(Map<String, dynamic> json) {
  final _threshold = json['threshold'] as num;
  final _userIds = (json['userIds'] as List).map((e) => e as String).toList();
  return externaldatav1Quorum(
    threshold: _threshold,
    userIds: _userIds,
  );
}