CPDFFontName.fromJson constructor
Create a CPDFFontName from a JSON-like map returned by the platform channel.
Expected keys: familyName (String), psNames (List
Implementation
factory CPDFFontName.fromJson(Map<String, dynamic> json) {
return CPDFFontName(
familyName: json['familyName'] as String? ?? '',
styleNames: (json['styleNames'] as List?)
?.whereType<String>()
.toList() ?? <String>[],
);
}