toJson method
Implementation
@override
Map<String, dynamic> toJson(UApplyWritesResult object) => object.when(
createResult: const CreateResultConverter().toJson,
updateResult: const UpdateResultConverter().toJson,
deleteResult: const DeleteResultConverter().toJson,
unknown: (data) => data,
);