toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var propertyKey = this.propertyKey;
  var ruleId = this.ruleId;
  var statusMappingReference = this.statusMappingReference;
  var statusReference = this.statusReference;
  var transitionId = this.transitionId;

  final json = <String, Object?>{};
  if (propertyKey != null) {
    json[r'propertyKey'] = propertyKey;
  }
  if (ruleId != null) {
    json[r'ruleId'] = ruleId;
  }
  if (statusMappingReference != null) {
    json[r'statusMappingReference'] = statusMappingReference.toJson();
  }
  if (statusReference != null) {
    json[r'statusReference'] = statusReference;
  }
  if (transitionId != null) {
    json[r'transitionId'] = transitionId;
  }
  return json;
}