Attachment.fromJson constructor

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

Implementation

factory Attachment.fromJson(Map<String, dynamic> json) => Attachment(
      url: json['url'],
      mediaType: (json['type'] as String).mediaType,
    );