serialize method

  1. @override
String serialize()
override

Implementation

@override
String serialize() {
  final buffer = StringBuffer();
  buffer.write('BEGIN:VPARTICIPANT\n');

  if (name != null) {
    buffer.write('$role;CN=$name:$email\n');
  } else {
    buffer.write('$role:$email\n');
  }
  buffer.write('END:VPARTICIPANT');
  return buffer.toString();
}