listFromJson static method
Implementation
static List<DeviceLinks> listFromJson(List<dynamic>? json) {
if (json == null) {
return <DeviceLinks>[];
}
return json.fold(<DeviceLinks>[],
(List<DeviceLinks> previousValue, element) {
final DeviceLinks? object = DeviceLinks.fromJson(element);
if (object is DeviceLinks) {
previousValue.add(object);
}
return previousValue;
});
}