load static method
- Uint8List buffer
Deserialize from buffer.
Parameters
- IN buffer The buffer to deserialize from
Returns
Deserialized MarkerCollection object with on success, null otherwise.
Implementation
static MarkerCollection? load(Uint8List buffer) {
final dynamic dataBufferPointer =
GemKitPlatform.instance.toNativePointer(buffer);
final OperationResult resultString = staticMethod(
'MarkerCollection',
'load',
args: <String, dynamic>{
'dataBuffer': dataBufferPointer.address,
'dataBufferSize': buffer.length,
},
);
if (resultString['gemApiError'] != 0) {
return null;
}
return MarkerCollection.init(resultString['result'], 0);
}