toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.dateCreated != null) {
    json[r'date_created'] = this.dateCreated!.toUtc().toIso8601String();
  } else {
    json[r'date_created'] = null;
  }
  if (this.lastUpdated != null) {
    json[r'last_updated'] = this.lastUpdated!.toUtc().toIso8601String();
  } else {
    json[r'last_updated'] = null;
  }
  if (this.integrationId != null) {
    json[r'integration_id'] = this.integrationId;
  } else {
    json[r'integration_id'] = null;
  }
    json[r'company_id'] = this.companyId;
    json[r'user_id'] = this.userId;
    json[r'platform'] = this.platform;
    json[r'platform_name'] = this.platformName;
    json[r'credentials_secret_name'] = this.credentialsSecretName;
    json[r'is_active'] = this.isActive;
  if (this.lastUsedAt != null) {
    json[r'last_used_at'] = this.lastUsedAt!.toUtc().toIso8601String();
  } else {
    json[r'last_used_at'] = null;
  }
  return json;
}