toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
    json[r'name'] = this.name;
    json[r'email'] = this.email;
  if (this.emailVerified != null) {
    json[r'emailVerified'] = this.emailVerified;
  } else {
    json[r'emailVerified'] = null;
  }
  if (this.image != null) {
    json[r'image'] = this.image;
  } else {
    json[r'image'] = null;
  }
    json[r'blocked'] = this.blocked;
  if (this.authProviderUserId != null) {
    json[r'authProviderUserId'] = this.authProviderUserId;
  } else {
    json[r'authProviderUserId'] = null;
  }
  if (this.locale != null) {
    json[r'locale'] = this.locale;
  } else {
    json[r'locale'] = null;
  }
  if (this.scimExternalId != null) {
    json[r'scimExternalId'] = this.scimExternalId;
  } else {
    json[r'scimExternalId'] = null;
  }
  if (this.metadata != null) {
    json[r'metadata'] = this.metadata;
  } else {
    json[r'metadata'] = null;
  }
    json[r'sessionVersion'] = this.sessionVersion;
  if (this.twoFactorEnabled != null) {
    json[r'twoFactorEnabled'] = this.twoFactorEnabled;
  } else {
    json[r'twoFactorEnabled'] = null;
  }
  if (this.twoFactorSecret != null) {
    json[r'twoFactorSecret'] = this.twoFactorSecret;
  } else {
    json[r'twoFactorSecret'] = null;
  }
  if (this.twoFactorBackupCodes != null) {
    json[r'twoFactorBackupCodes'] = this.twoFactorBackupCodes;
  } else {
    json[r'twoFactorBackupCodes'] = null;
  }
    json[r'isPlatformAdmin'] = this.isPlatformAdmin;
  if (this.onboardingState != null) {
    json[r'onboardingState'] = this.onboardingState;
  } else {
    json[r'onboardingState'] = null;
  }
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
  if (this.updatedAt != null) {
    json[r'updatedAt'] = this.updatedAt;
  } else {
    json[r'updatedAt'] = null;
  }
  if (this.lastLoginAt != null) {
    json[r'lastLoginAt'] = this.lastLoginAt;
  } else {
    json[r'lastLoginAt'] = null;
  }
    json[r'failedLoginAttempts'] = this.failedLoginAttempts;
  if (this.lockedUntil != null) {
    json[r'lockedUntil'] = this.lockedUntil;
  } else {
    json[r'lockedUntil'] = null;
  }
  if (this.deletedAt != null) {
    json[r'deletedAt'] = this.deletedAt;
  } else {
    json[r'deletedAt'] = null;
  }
  if (this.deletedBy != null) {
    json[r'deletedBy'] = this.deletedBy;
  } else {
    json[r'deletedBy'] = null;
  }
  return json;
}