Convert to a Map to send to Kotlin
Map<String, dynamic> toMap() { return { 'value': value, 'type': type, 'key': key, 'id': id, 'displayConfiguration': displayConfiguration, }; }