fromJson static method

Holiday fromJson(
  1. dynamic value
)

Implementation

static Holiday fromJson(dynamic value) {
  final json = value.cast<String, dynamic>();
  return Holiday(
    date: mapDateTime(json, r'date', '')!,
    description: mapValueOfType<String>(json, r'description')!,
  );
}