toJson method Null safety

Map<String, dynamic> toJson()

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,
    };