IList<T>.fromJson constructor

IList<T>.fromJson(
  1. dynamic json,
  2. T fromJsonT(
    1. Object?
    )
)

Converts from JSon. Json serialization support for json_serializable with @JsonSerializable.

Implementation

factory IList.fromJson(dynamic json, T Function(Object?) fromJsonT) =>
    IList<T>((json as Iterable).map(fromJsonT));