toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'action': action,
'method': method,
'enctype': enctype,
if (title != null) 'title': title,
if (text != null) 'text': text,
if (url != null) 'url': url,
if (files != null) 'files': files!.map((e) => e.toJson()).toList(),
};
}