core.Map<core.String, core.dynamic> toJson() => { if (emailAddress != null) 'emailAddress': emailAddress!, if (role != null) 'role': role!, };