Attachment.fromJson constructor

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

Implementation

factory Attachment.fromJson(Map<String, dynamic> json) {
  return Attachment(
      json['id'],
      json['userId'],
      DateTime.parse(json['time']),
      json['fileName'],
      json['contentType'],
      json['deleted'],
      json['private'],
      json['checkedOut'],
      json['holdingId']);
}