convertFromJson method Null safety

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

Implementation

@override
D? convertFromJson(J? value) => optional
    ? optionalFromJson(value) ?? defaultValue
    : mandatoryFromJson(value as J);