convertToJson method Null safety

  1. @override
J? convertToJson(
  1. D? value
)
override

Implementation

@override
J? convertToJson(D? value) =>
    optional ? optionalToJson(value) : mandatoryToJson(value as D);