toCallable method
Convert for Firebase callable functions.
Timestamps are kept as milliseconds and server-managed timestamp fields (from getCreateTimestampFields and getUpdateTimestampFields) are removed since the server will add them.
Example:
final callable = FirebaseFunctions.instance.httpsCallable('createPost');
await callable.call(post.toCallable());
Implementation
Map<String, dynamic> toCallable() {
final json = toJson();
return _processForContext(json, SerializationContext.callable);
}