toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final deviceId = this.deviceId;
  final isGuest = this.isGuest;
  return {
    if (deviceId != null) 'device_id': deviceId,
    if (isGuest != null) 'is_guest': isGuest,
    'user_id': userId,
  };
}