IconFontModel.fromJson constructor

IconFontModel.fromJson(Map<String, dynamic> json)

Implementation

IconFontModel.fromJson(Map<String, dynamic> json) {
  id = json["id"]?.toString();
  name = json["name"]?.toString();
  fontFamily = json["font_family"]?.toString();
  cssPrefixText = json["css_prefix_text"]?.toString();
  description = json["description"]?.toString();
  if (json["glyphs"] != null) {
    var v = json["glyphs"];
    var arr0 = List<IconFontModelGlyphs>();
    v.forEach((v) {
      arr0.add(IconFontModelGlyphs.fromJson(v));
    });
    glyphs = arr0;
  }
}