Font.fromJson constructor

Font.fromJson(
  1. Map<String, dynamic> map
)

Implementation

factory Font.fromJson(Map<String, dynamic> map) =>
    Font(size: map['size'], lineHeight: map['lineHeight'], fontWeight: _getFontWeight(map));