factory DatetimeRange.fromJson(Map<String, dynamic> json) { return DatetimeRange( begin: json['Begin'] as String, end: json['End'] as String?, ); }