Attachment.fromJson constructor
- Json j
Parses the wire shape.
Implementation
factory Attachment.fromJson(Json j) => Attachment(
id: strOr(j, 'id'),
name: strOr(j, 'name'),
size: intOr(j, 'size'),
type: strOr(j, 'type', 'application/octet-stream'),
url: str(j, 'url'),
);