toJson method

Map<String, dynamic> toJson()

Converts to JSON.

Implementation

Map<String, dynamic> toJson() => {
  'file_id': fileId,
  if (tools != null) 'tools': tools!.map((t) => t.toJson()).toList(),
};