DataProperties.fromJson constructor

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

Implementation

factory DataProperties.fromJson(Map<String, dynamic> json) => DataProperties(
      deviceId: json["deviceId"],
      name: json["name"],
      email: json["email"],
      phoneNumber: json["phoneNumber"],
      externalId: json["externalId"],
      id: json["_id"],
      rewards: json["rewards"] == null
          ? []
          : List<PropertiesReward>.from(
              json["rewards"]!.map((x) => PropertiesReward.fromJson(x))),
    );