Users.fromJson constructor

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

Implementation

Users.fromJson(Map<String, dynamic> json) {
  weather = json["weather"];
  clouds = json["clouds"];
  time = json["time"];
  sportsYouCanDo = json["sportsYouCanDo"] != null ? List<SportsYouCanDo>.from(json["sportsYouCanDo"].map((item) => SportsYouCanDo.fromJson(item))) : null;
  anyMap = json["anyMap"] != null ? List<AnyMap>.from(json["anyMap"].map((item) => AnyMap.fromJson(item))) : null;
}