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