serializeAsMap method

Map<String, Object?> serializeAsMap()

Serialize the object to a map

Implementation

Map<String, Object?> serializeAsMap() => {
      'newPassword': newPassword,
      'oldPassword': oldPassword,
      if (options != null) 'options': options?.serializeAsMap()
    };