toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  json[r'object'] = this.object;
  json[r'phone_number'] = this.phoneNumber;
  if (this.reservedForSecondFactor != null) {
    json[r'reserved_for_second_factor'] = this.reservedForSecondFactor;
  } else {
    json[r'reserved_for_second_factor'] = null;
  }
  if (this.defaultSecondFactor != null) {
    json[r'default_second_factor'] = this.defaultSecondFactor;
  } else {
    json[r'default_second_factor'] = null;
  }
  json[r'reserved'] = this.reserved;
  if (this.verification != null) {
    json[r'verification'] = this.verification;
  } else {
    json[r'verification'] = null;
  }
  json[r'linked_to'] = this.linkedTo;
  if (this.backupCodes != null) {
    json[r'backup_codes'] = this.backupCodes;
  } else {
    json[r'backup_codes'] = null;
  }
  json[r'created_at'] = this.createdAt;
  json[r'updated_at'] = this.updatedAt;
  return json;
}