CPDFOutline.fromJson constructor
CPDFOutline.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CPDFOutline.fromJson(Map<String, dynamic> json) {
return CPDFOutline(
uuid: json['uuid'] ?? '',
tag: json['tag'] ?? '',
title: json['title'] ?? '',
level: json['level'] ?? 0,
destination: json['destination'] != null
? CPDFDestination.fromJson(
Map<String, dynamic>.from(json['destination'] ?? {}))
: null,
childList: (json['childList'] as List<dynamic>? ?? [])
.map((e) => CPDFOutline.fromJson(Map<String, dynamic>.from(e)))
.toList(),
action: json['action'] != null
? CPDFAction.fromJson(
Map<String, dynamic>.from(json['action'] ?? {}))
: null);
}