serializeAsMap method
Serialize the object to a map.
Implementation
Map<String, Object?> serializeAsMap() {
final Map<String, Object?> pendingRequest = {
'options': options?.serializeAsMap()
};
pendingRequest.removeWhere((_, v) => v == null);
return pendingRequest;
}