JJUserEntity.fromJson constructor

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

Implementation

factory JJUserEntity.fromJson(Map<String, dynamic> json) => JJUserEntity(
      id: json["id"],
      inviteCode: json["inviteCode"],
      nikeName: json["nikeName"],
      userLevel: json["userLevel"] ?? 1,
      icon: json["icon"],
      gender: json["gender"] ?? 0,
      nobilityType: json["nobilityType"] ?? NobleTypeEnum.none,
      guardType: json["guardType"] ?? GuardTypeEnum.none,
    );