ListAttachmentsResponse.fromJson constructor

ListAttachmentsResponse.fromJson(
  1. Map json_
)

Implementation

ListAttachmentsResponse.fromJson(core.Map json_)
    : this(
        attachments: json_.containsKey('attachments')
            ? (json_['attachments'] as core.List)
                .map((value) => Attachment.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
      );