toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'to'] = this.to;
  json[r'groupId'] = this.groupId;
  json[r'cc'] = this.cc;
  json[r'bcc'] = this.bcc;
  if (this.role != null) {
    json[r'role'] = this.role;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  }
  if (this.surname != null) {
    json[r'surname'] = this.surname;
  }
  if (this.username != null) {
    json[r'username'] = this.username;
  }
  if (this.email != null) {
    json[r'email'] = this.email;
  }
  return json;
}