toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final emailAddress = this.emailAddress;
  final matrixId = this.matrixId;
  return {
    if (emailAddress != null) 'email_address': emailAddress,
    if (matrixId != null) 'matrix_id': matrixId,
    'role': role.name,
  };
}