toJson method

  1. @override
Map<String, dynamic>? toJson(
  1. FontFeature? object
)
override

Implementation

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

  return <String, dynamic>{
    'feature': object.feature,
    'value': object.value,
  };
}