fromJson method

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

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),
  );
}