fromJson method

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

Implementation

@override
FontFeature? fromJson(Map<String, dynamic>? json) {
  if (json == null) return null;

  return FontFeature(
    json['feature'],
    (json['json'] as num).toInt(),
  );
}