toJson method
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())),
};