encodeFontFeature static method
Encodes the given value
into a JSON representation.
{
"feature": "<String>",
"value": "<int>"
}
Implementation
static Map<String, dynamic>? encodeFontFeature(FontFeature? value) {
Map<String, dynamic>? result;
if (value != null) {
result = <String, dynamic>{
'feature': value.feature,
'value': value.value,
};
}
return _stripDynamicNull(result);
}