toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'user_id'] = this.userId;
  json[r'phone_number'] = this.phoneNumber;
  if (this.verified != null) {
    json[r'verified'] = this.verified;
  } else {
    json[r'verified'] = null;
  }
  if (this.primary != null) {
    json[r'primary'] = this.primary;
  } else {
    json[r'primary'] = null;
  }
  if (this.reservedForSecondFactor != null) {
    json[r'reserved_for_second_factor'] = this.reservedForSecondFactor;
  } else {
    json[r'reserved_for_second_factor'] = null;
  }
  return json;
}