JsonMetadata.fromJson constructor

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

Implementation

factory JsonMetadata.fromJson(Map<String, dynamic> json) => JsonMetadata(
  app: json["app"],
  format: formatValues.map[json["format"]],
  image: json["image"] != null ? List<String>.from(json["image"]) : null,
  links: json["links"] != null ? List<String>.from(json["links"]) : null,
  tags: json["tags"] != null ? List<String>.from(json["tags"]) : null,
  description: json["description"],
  users: json["users"] != null ? List<String>.from(json["users"]) : null,
  imageRatios: json["imageRatios"],
  thumbnails:
      json["thumbnails"] != null
          ? List<String>.from(json["thumbnails"])
          : null,
  type: json["type"],
  actiCrVal: json["actiCrVal"],
  actifitUserId:
      json["actifit_user_id"] != null
          ? List<String>.from(json["actifit_user_id"])
          : null,
  activityDate:
      json["activity_date"] != null
          ? List<String>.from(json["activity_date"])
          : null,
  activityType:
      json["activity_type"] != null
          ? List<String>.from(json["activity_type"])
          : null,
  appType: json["app_type"],
  chestUnit:
      json["chest_unit"] != null
          ? List<String>.from(json["chest_unit"])
          : null,
  community:
      json["community"] != null ? List<String>.from(json["community"]) : null,
  dataTrackingSource:
      json["data_tracking_source"] != null
          ? List<String>.from(json["data_tracking_source"])
          : null,
  detailedActivity:
      json["detailed_activity"] != null
          ? List<String>.from(json["detailed_activity"])
          : null,
  heightUnit:
      json["height_unit"] != null
          ? List<String>.from(json["height_unit"])
          : null,
  stepCount: json["step_count"],
  thighsUnit:
      json["thighs_unit"] != null
          ? List<String>.from(json["thighs_unit"])
          : null,
  waistUnit:
      json["waist_unit"] != null
          ? List<String>.from(json["waist_unit"])
          : null,
  weightUnit:
      json["weight_unit"] != null
          ? List<String>.from(json["weight_unit"])
          : null,
  shortForm: json["short_form"],
  fitbitUserId: json["fitbit_user_id"],
);