toJson method

Object toJson({
  1. int? id,
})

Serialize the attachment to JSON

Implementation

Object toJson ({int? id}) => {
  'id': id,
  'filename': filename,
  'description': description
};