toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "deviceId": deviceId,
      "name": name,
      "email": email,
      "phoneNumber": phoneNumber,
      "externalId": externalId,
      "_id": id,
      "rewards": rewards == null
          ? []
          : List<dynamic>.from(rewards!.map((x) => x.toJson())),
    };