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