jsonList property
List
get
jsonList
jsonBody come List — gestisce sia List diretta che Map con "data"/"items". Ritorna sempre una List (vuota se il body non contiene dati lista).
Implementation
List get jsonList {
if (jsonBody is List) return jsonBody as List;
if (jsonBody is Map) {
final data = jsonBody["data"];
if (data is List) return data;
final items = jsonBody["items"];
if (items is List) return items;
}
return [];
}