toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    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;
  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;
}