Map<String, dynamic> toMap() { return <String, dynamic>{ 'key': key, 'refValue': refValue, 'stringValue': stringValue, }; }