toJson method

  1. @override
Map<String, dynamic> toJson(
  1. UApplyWritesResult object
)

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,
    );