Attachment.fromJson constructor

Attachment.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Attachment.fromJson(Map<String, dynamic> json) {
  return Attachment(
    filename: json['filename'] as String,
    contentType: json['contentType'] as String,
    size: json['size'] as int,
  );
}