generateGeodatabaseReplicaFromFeatureService method

Future<AGMLGeodatabase?> generateGeodatabaseReplicaFromFeatureService(
  1. AGMLFeatureService featureService
)

Implementation

Future<AGMLGeodatabase?> generateGeodatabaseReplicaFromFeatureService(AGMLFeatureService featureService) async {
  const method = '/generateGeodatabaseReplicaFromFeatureService';

  try {
    final channelResponse = await _channel.invokeMethod(method, featureService.toJson()) as String;
    final geodatabase = AGMLGeodatabase.fromJson(jsonDecode(channelResponse));
    return geodatabase;
  } catch (e) {
    if (kDebugMode) print(e);
    return null;
  }
}