toJson method

Map<String, dynamic> toJson()

Serializes this instance to a JSON object.

Implementation

Map<String, dynamic> toJson() => {
      'operationType': type.name,
      'partitionKey': jsonEncode(partitionKey?.values),
    };