toJson method

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

Implementation

@override
Map<String, dynamic> toJson(UApplyWritesWrite object) => object.when(
      create: const CreateConverter().toJson,
      update: const UpdateConverter().toJson,
      delete: const DeleteConverter().toJson,
      unknown: (data) => data,
    );