toJson method

Map<String, Object?> toJson()

Implementation

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

  final json = <String, Object?>{};
  json[r'payload'] = payload.toJson();
  if (validationOptions != null) {
    json[r'validationOptions'] = validationOptions.toJson();
  }
  return json;
}