getCloudDBZoneConfig method

Future<AGConnectCloudDBZoneConfig> getCloudDBZoneConfig()

You can invoke this method to obtain the current Cloud DB zone configuration information, including the Cloud DB zone name, synchronization attributes, and access attributes.

Implementation

Future<AGConnectCloudDBZoneConfig> getCloudDBZoneConfig() async {
  try {
    final Map<dynamic, dynamic>? result =
        await _methodChannel.invokeMethod<Map<dynamic, dynamic>?>(
      _MethodConstants.GET_CLOUD_DB_ZONE_CONFIG,
      <String, dynamic>{
        _KeyConstants.ZONE_ID: _id,
      },
    );
    return AGConnectCloudDBZoneConfig._fromMap(
        Map<String, dynamic>.from(result!));
  } catch (e) {
    throw AGConnectCloudDBException._from(e);
  }
}