Attachment.fromJson constructor

Attachment.fromJson(
  1. Map json_
)

Implementation

Attachment.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        creator: json_.containsKey('creator')
            ? Actor.fromJson(
                json_['creator'] as core.Map<core.String, core.dynamic>)
            : null,
        filename: json_.containsKey('filename')
            ? json_['filename'] as core.String
            : null,
        mimeType: json_.containsKey('mimeType')
            ? json_['mimeType'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        sizeBytes: json_.containsKey('sizeBytes')
            ? json_['sizeBytes'] as core.String
            : null,
      );