toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final thingIndexingMode = this.thingIndexingMode;
  final customFields = this.customFields;
  final managedFields = this.managedFields;
  final thingConnectivityIndexingMode = this.thingConnectivityIndexingMode;
  return {
    'thingIndexingMode': thingIndexingMode.toValue(),
    if (customFields != null) 'customFields': customFields,
    if (managedFields != null) 'managedFields': managedFields,
    if (thingConnectivityIndexingMode != null)
      'thingConnectivityIndexingMode':
          thingConnectivityIndexingMode.toValue(),
  };
}