toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.validations != null) {
    json[r'validations'] = this.validations;
  } else {
    json[r'validations'] = null;
  }
  if (this.creditsUsed != null) {
    json[r'creditsUsed'] = this.creditsUsed;
  } else {
    json[r'creditsUsed'] = null;
  }
  return json;
}