fromJson<T extends SerializableMixin, U> static method

List<T> fromJson<T extends SerializableMixin, U>(
  1. Iterable json,
  2. T decode(
    1. U
    )
)

Creates a list of Serializable objects from json.

Implementation

static List<T> fromJson<T extends SerializableMixin, U>(
  final Iterable json,
  T Function(U) decode,
) => json.cast<U>().map(decode).toList(growable: true);