serializeAsMap method
Implementation
Map<String, Object?> serializeAsMap() => {
if (username != null) 'username': username,
if (password != null) 'password': password,
if (options != null) 'options': options!.serializeAsMap()
};