Map<String, dynamic> toJson() { // The upper-case here is expected return <String, dynamic>{'Username': username, 'Password': password}; }