asMap method
Returns the numeric value data as a map like Map<String, dynamic>.
Implementation
@override
Map<String, Object?> asMap() {
final map = super.asMap();
map.addAll({'code': _code});
map.addAll(time == null ? {'datetime': null} : time!.asMap());
return map;
}