listFromJson static method
Implementation
static List<DurationDto>? listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <DurationDto>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {
final value = DurationDto.fromJson(row);
if (value != null) {
result.add(value);
}
}
}
return result.toList(growable: growable);
}