toSimple method Null safety

  1. @override
int toSimple ()
override

returns a simple, json compatible representation of the content

Implementation

@override
int toSimple() {
  return value;
}