Font.fromMap constructor

Font.fromMap(
  1. Map map
)

Implementation

factory Font.fromMap(Map map) {
  return Font(
      family: map['family'] as String,
      fonts: map['fonts'] != null && map['fonts'] is List
          ? (map['fonts'] as List).map((e) => FontsData.fromMap(e)).toList()
          : null);
}