asMap method

  1. @override
Map<String, Object?> asMap()
override

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