serializeAsMap method
Serialize the object to a map
Implementation
Map<String, Object?> serializeAsMap() => {
'username': username,
'newPassword': newPassword,
'confirmationCode': confirmationCode,
if (options != null) 'options': options?.serializeAsMap()
};