asMap method
Returns the numeric value data as a map like Map<String, dynamic>.
Implementation
@override
Map<String, Object?> asMap() {
return {
'cardinal': cardinal,
'variable': variable,
'units': 'degrees',
'direction': inDegrees,
};
}