ListPrintersResponse.fromJson constructor

ListPrintersResponse.fromJson(
  1. Map json_
)

Implementation

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