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);
  }
}