User.swift 161 B

1234567
  1. import Foundation
  2. extension User {
  3. func toBasicUser() -> BasicUser {
  4. return BasicUser(username: username ?? "?", password: password ?? "?")
  5. }
  6. }