class UserInfoModel {
  String? sub;
  bool? emailVerified;
  String? name;
  String? preferredUsername;
  String? givenName;
  String? familyName;
  String? email;

  UserInfoModel(
      {this.sub,
      this.emailVerified,
      this.name,
      this.preferredUsername,
      this.givenName,
      this.familyName,
      this.email});

  UserInfoModel.fromJson(Map<String, dynamic> json) {
    sub = json['sub'];
    emailVerified = json['email_verified'];
    name = json['name'];
    preferredUsername = json['preferred_username'];
    givenName = json['given_name'];
    familyName = json['family_name'];
    email = json['email'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['sub'] = sub;
    data['email_verified'] = emailVerified;
    data['name'] = name;
    data['preferred_username'] = preferredUsername;
    data['given_name'] = givenName;
    data['family_name'] = familyName;
    data['email'] = email;
    return data;
  }
}
