toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  _json['name'] = name;
  if (newOperators != null) {
    _json['newOperators'] = newOperators?.map((e) => e.toJson()).toList();
  }
  if (existingOperatorIds != null) {
    _json['existingOperatorIds'] = existingOperatorIds;
  }
  _json['threshold'] = threshold;
  return _json;
}