ListPrinterModelsResponse.fromJson constructor

ListPrinterModelsResponse.fromJson(
  1. Map json_
)

Implementation

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