toJson method Null safety
Implementation
Map<String, dynamic> toJson() => {
"firstName": firstName,
"lastName": lastName,
"email": email,
"mobile": mobile,
"imageUrl": imageUrl,
"socialType": socialType,
"socialCode": socialCode,
"id": id,
"deviceID": deviceId,
"appleId": appleId,
};