FontFamilies.fromJson constructor
FontFamilies.fromJson(
- Map<String, dynamic> json
)
Implementation
factory FontFamilies.fromJson(Map<String, dynamic> json) {
return FontFamilies(
standard:
json.containsKey('standard') ? json['standard'] as String : null,
fixed: json.containsKey('fixed') ? json['fixed'] as String : null,
serif: json.containsKey('serif') ? json['serif'] as String : null,
sansSerif:
json.containsKey('sansSerif') ? json['sansSerif'] as String : null,
cursive: json.containsKey('cursive') ? json['cursive'] as String : null,
fantasy: json.containsKey('fantasy') ? json['fantasy'] as String : null,
math: json.containsKey('math') ? json['math'] as String : null,
);
}