PlatformFontUsage.fromJson constructor

PlatformFontUsage.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory PlatformFontUsage.fromJson(Map<String, dynamic> json) {
  return PlatformFontUsage(
    familyName: json['familyName'] as String,
    postScriptName: json['postScriptName'] as String,
    isCustomFont: json['isCustomFont'] as bool? ?? false,
    glyphCount: json['glyphCount'] as num,
  );
}