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