Question: Is there a Kotlin equivalent for this Sw...
# android
j
Question: Is there a Kotlin equivalent for this Swift code?
Copy code
public required init?(with json: [String: Any]) {
        guard 
            let membershipType = json["membership_type"] as? String
            else {
            return nil
            }
     }