Attachment.fromJson constructor

Attachment.fromJson(
  1. Map json_
)

Implementation

Attachment.fromJson(core.Map json_)
    : this(
        attachmentDataRef: json_.containsKey('attachmentDataRef')
            ? AttachmentDataRef.fromJson(json_['attachmentDataRef']
                as core.Map<core.String, core.dynamic>)
            : null,
        contentName: json_.containsKey('contentName')
            ? json_['contentName'] as core.String
            : null,
        contentType: json_.containsKey('contentType')
            ? json_['contentType'] as core.String
            : null,
        downloadUri: json_.containsKey('downloadUri')
            ? json_['downloadUri'] as core.String
            : null,
        driveDataRef: json_.containsKey('driveDataRef')
            ? DriveDataRef.fromJson(
                json_['driveDataRef'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        source: json_.containsKey('source')
            ? json_['source'] as core.String
            : null,
        thumbnailUri: json_.containsKey('thumbnailUri')
            ? json_['thumbnailUri'] as core.String
            : null,
      );