Map<String, dynamic> toJson() { final map = <String, dynamic>{}; map['username'] = userName; map['password'] = password; return map; }