fromJson method
Implementation
@override
IconData? fromJson(Map<String, dynamic>? json) {
if (json == null) return null;
return IconData(
(json['codePoint'] as num).toInt(),
fontFamily: json['fontFamily'],
fontPackage: json['fontPackage'],
matchTextDirection: (json['matchTextDirection'] as bool),
);
}