UserBean.fromJson constructor

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

Implementation

factory UserBean.fromJson(Map<String, dynamic> json) => UserBean(
      weight: json["weight"] ?? -1,
      height: json["height"] ?? -1,
      gender: json["gender"] ?? -1,
      age: json["age"] ?? -1,
    );