UserDetailInfo.fromJson constructor

UserDetailInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory UserDetailInfo.fromJson(Map<String, dynamic> json) {
  return UserDetailInfo(
    about: Rxn(json['about']),
    age: Rxn(json['age']),
    email: Rxn(json['email']),
    friends: Rxn(json['friends']),
    posts: Rxn(json['posts']),
    awards: Rxn(json['awards']),
    phoneNumber: Rxn(json['phoneNumber']),
    birthdayDate: Rxn(json['birthdayDate']),
    inviteCode: Rxn(json['inviteCode']),
    lastloginDate: Rxn(json['lastloginDate']),
    lastloginDateV2: Rxn(json['lastloginDateV2']),
    lastfailedDate: Rxn(json['lastfailedDate']),
    country: json['country'] != null
        ? Rxn(Country.fromJson(json['country']))
        : Rxn<Country>(),
    province: json['province'] != null
        ? Rxn(Province.fromJson(json['province']))
        : Rxn<Province>(),
  );
}