fromJSON method
Implementation
@override
Object? fromJSON(dynamic jsonValue, DeserializationContext context) {
final format = getDateFormat(context.jsonPropertyMeta);
if (jsonValue is String) {
return format != null
? format.parse(jsonValue)
: DateTime.parse(jsonValue);
}
return jsonValue;
}