listFromJson static method

List<Holiday> listFromJson(
  1. dynamic json
)

Implementation

static List<Holiday> listFromJson(dynamic json) =>
    json is List && json.isNotEmpty
        ? json.map(Holiday.fromJson).toList()
        : <Holiday>[];