fromJsonStringListGeneric<T> static method

List<T>? fromJsonStringListGeneric<T>(
  1. String? jsonStringList,
  2. T? fromJsonMap(
    1. Map<String, dynamic> json
    )
)

Implementation

static List<T>? fromJsonStringListGeneric<T>(
  String? jsonStringList,
  T? Function(Map<String, dynamic> json) fromJsonMap,
) => (jsonStringList?.isNotEmpty ?? true)
    ? fromJsonListGeneric(jsonDecode(jsonStringList!), fromJsonMap)
    : null;