BatchCreatePrintersResponse.fromJson constructor

BatchCreatePrintersResponse.fromJson(
  1. Map json_
)

Implementation

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