listFromJson static method

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

Implementation

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