convertList<T> static method

List<T> convertList<T>(
  1. dynamic value, {
  2. T fromJson(
    1. Map<String, dynamic>
    )?,
  3. dynamic defaultValue()?,
})

Implementation

static List<T> convertList<T>(dynamic value,
  {
    T Function(Map<String, dynamic>)? fromJson,
    dynamic Function()? defaultValue
  }
)  {
  return _toList(value, fromJson: fromJson) as List<T>;
}