toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var operation = this.operation;
  var targetType = this.targetType;

  final json = <String, Object?>{};
  if (operation != null) {
    json[r'operation'] = operation;
  }
  if (targetType != null) {
    json[r'targetType'] = targetType;
  }
  return json;
}