save method
Serialize this collection to a binary buffer.
The returned buffer can be later deserialized with load.
Returns
- A Uint8List containing the serialized data on success, or
nullon error.
See also:
- load to deserialize a collection from a binary buffer.
Implementation
Uint8List? save() {
final OperationResult resultString = objectMethod(
pointerId,
'MarkerCollection',
'save',
);
if (resultString['gemApiError'] != 0) {
return null;
}
final String encodedResult = resultString['result'];
final Uint8List resultAsUint8List = base64Decode(encodedResult);
return resultAsUint8List;
}