fromJson method

  1. @override
IconData fromJson(
  1. Map<String, String?> json
)

Implementation

@override
IconData fromJson(Map<String, String?> json) {
  return IconData(
    int.parse(json['codePoint']!),
    fontFamily: json['fontFamily'],
    fontPackage: json['fontPackage'],
    matchTextDirection: json['matchTextDirection'] == 'true',
  );
}