toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return <String, dynamic>{
    if (body != null) r'body': body,
    if (file != null) r'file': file,
    if (permission != null) r'permission': permission,
    if (text != null) r'text': text,
    if (tags != null) r'tags': tags,
  };
}