toString method

  1. @override
String toString()
override

Returns a string that represents this entity by using oid and code.

Implementation

@override
String toString() {
  if (_code == null) {
    return '{${_concept!.code!}: {oid:${_oid.toString()}}}';
  } else {
    return '{${_concept!.code!}: {oid:${_oid.toString()}, code:$_code}}';
  }
}