toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.userId != null) {
    json[r'user_id'] = this.userId;
  } else {
    json[r'user_id'] = null;
  }
    json[r'engine_id'] = this.engineId;
    json[r'company_id'] = this.companyId;
  if (this.credentialType != null) {
    json[r'credential_type'] = this.credentialType;
  } else {
    json[r'credential_type'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  if (this.providerDomain != null) {
    json[r'provider_domain'] = this.providerDomain;
  } else {
    json[r'provider_domain'] = null;
  }
  if (this.verifiedUsageAbility != null) {
    json[r'verified_usage_ability'] = this.verifiedUsageAbility;
  } else {
    json[r'verified_usage_ability'] = null;
  }
  return json;
}