GenericError constructor Null safety

GenericError(
  1. {int? code,
  2. String? message}
)