setting data type in firebase realtime database code example
Example: swift store enum case string values in firebase
enum LoginProvider: String {
case Facebook = "facebook"
case Email = "email"
case Google = "google"
case Twitter = "twitter"
}
let provider = LoginProvider.init(rawValue: "email")