AttachmentRef.fromJson constructor

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

Read this payload from a decoded JSON object.

Implementation

factory AttachmentRef.fromJson(Map<String, dynamic> json) => AttachmentRef(
      id: json['id'] as String,
      name: json['name'] as String,
      sizeBytes: json['sizeBytes'] as int,
      sha256: json['sha256'] as String,
      contentType: json['contentType'] as String?,
    );