toMap method
Convert Configuration to dictionary form
Implementation
Map<String, dynamic> toMap() {
return {
'dataDirectory': dataDirectory,
'logConfiguration': logConfiguration?.toMap(),
'enableSipTrace': enableSipTrace,
'enableStun': enableStun,
'stunServer': stunServer,
'enableNotifications': enableNotifications,
'enableDetectCallLocation': enableDetectCallLocation,
'androidTelecomIntegrationMode': androidTelecomIntegrationMode?.index,
'enableSecureConnection': enableSecureConnection,
'callKitConfiguration': callKitConfiguration?.toMap(),
'androidNotificationConfiguration':
androidNotificationConfiguration?.toMap(),
}..removeWhere((key, value) => value == null);
}