listFromJson static method

List<DialectDateTimeFormatEnum?>? listFromJson(
  1. List json, {
  2. bool? emptyIsNull,
  3. bool? growable,
})

Implementation

static List<DialectDateTimeFormatEnum?>? listFromJson(
  List<dynamic> json, {
  bool? emptyIsNull,
  bool? growable,
}) =>
    json.isEmpty
        ? true == emptyIsNull
            ? null
            : <DialectDateTimeFormatEnum>[]
        : json
            .map((value) => DialectDateTimeFormatEnum.fromJson(value))
            .toList(growable: true == growable);