FontMetadata.fromMap constructor

FontMetadata.fromMap(
  1. Map<String, dynamic> map
)

Create FontMetadata from a map.

Implementation

FontMetadata.fromMap(Map<String, dynamic> map)
    : id = map['id'],
      family = map['family'],
      subsets = map['subsets'].cast<String>(),
      weights = map['weights'].cast<int>(),
      styles = map['styles'].cast<String>(),
      defSubset = map['defSubset'],
      variable = map['variable'],
      lastModified = map['lastModified'],
      category = map['category'],
      version = map['version'],
      type = map['type'];