array<T> method

List<T> array<T>(
  1. String key, {
  2. T decodeFromJsonObject(
    1. JsonObject
    )?,
  3. Function? decoder,
  4. List? childType,
})

Get List with child T by String key.

Throws SquintException if key is not found.

Implementation

List<T> array<T>(
  String key, {
  T Function(JsonObject)? decodeFromJsonObject,
  Function? decoder,
  List? childType,
}) =>
    arrayNode<T>(key,
            decodeFromJsonObject: decodeFromJsonObject,
            decoder: decoder,
            childType: childType)
        .data;