toJson method

Map<String, dynamic> toJson()

Implementation

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