listFromJson static method
Returns a List containing instances of IndexDetailUnitEnum
that were successfully decoded from the passed json.
Implementation
static List<IndexDetailUnitEnum> listFromJson(dynamic json, {bool growable = false,}) {
final result = <IndexDetailUnitEnum>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {
final value = IndexDetailUnitEnum.fromJson(row);
if (value != null) {
result.add(value);
}
}
}
return result.toList(growable: growable);
}