toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'name': name,
    'type': type,
    'content': content,
    if (timestamp != null) 'timestamp': timestamp,
    if (dismissalTimestamp != null) 'dismissalTimestamp': dismissalTimestamp,
  };
}