toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'id'] = id;
  if (rev != null) {
    json[r'rev'] = rev;
  }
  if (deletionDate != null) {
    json[r'deletionDate'] = deletionDate;
  }
  if (name != null) {
    json[r'name'] = name;
  }
  if (description != null) {
    json[r'description'] = description;
  }
  if (responsible != null) {
    json[r'responsible'] = responsible;
  }
  if (guardPost != null) {
    json[r'guardPost'] = guardPost;
  }
  if (cbe != null) {
    json[r'cbe'] = cbe;
  }
  if (bic != null) {
    json[r'bic'] = bic;
  }
  if (bankAccount != null) {
    json[r'bankAccount'] = bankAccount;
  }
  if (nihii != null) {
    json[r'nihii'] = nihii;
  }
  if (ssin != null) {
    json[r'ssin'] = ssin;
  }
  if (address != null) {
    json[r'address'] = address;
  }
  json[r'agendaIds'] = agendaIds.toList();
  json[r'options'] = options;
  return json;
}