fromJson method

  1. @override
DateTime? fromJson(
  1. Object? json
)

Implementation

@override
DateTime? fromJson(Object? json) => json is num ? DateTime.fromMillisecondsSinceEpoch(json * 1000 as int) : null;