toString method

  1. @override
String toString()
override

A string representation of this object.

Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.

Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.

Implementation

@override
String toString() {
  var str= '';

  if(cn != null){
    str+='${Heplers.camelToSnake('cn').toUpperCase()}:$cn;';
  }
  if(role != null){
    str+='${Heplers.camelToSnake('role').toUpperCase()}:${role!.name.toUpperCase()};';
  }
  if(rsvp != null){
    str+='${Heplers.camelToSnake('rsvp').toUpperCase()}:${rsvp.toString().toUpperCase()};';
  }
  if(partstat != null){
    str+='${Heplers.camelToSnake('partstat').toUpperCase()}:${partstat!.name.toString().toUpperCase()};';
  }
  if(cutype != null){
    str+='${Heplers.camelToSnake('cutype').toUpperCase()}:${cutype!.name.toString().toUpperCase()};';
  }
  if(delegatedTo != null){
    str+='${Heplers.camelToSnake('delegatedTo').toUpperCase()}:$delegatedTo;';
  }
  if(delegatedFrom != null){
    str+='${Heplers.camelToSnake('delegatedFrom').toUpperCase()}:$delegatedFrom;';
  }
  str += mailto.toString();
  return str;
}