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