toMap method

Map<String, String> toMap()

Converts to a map suitable for storage.

Returns a map with 'value' and 'data_type' keys.

Implementation

Map<String, String> toMap() => {
      'value': value,
      'data_type': dataType,
    };