FailureInfo.fromJson constructor

FailureInfo.fromJson(
  1. Map json_
)

Implementation

FailureInfo.fromJson(core.Map json_)
    : this(
        errorCode: json_.containsKey('errorCode')
            ? json_['errorCode'] as core.String
            : null,
        errorMessage: json_.containsKey('errorMessage')
            ? json_['errorMessage'] as core.String
            : null,
        printer: json_.containsKey('printer')
            ? Printer.fromJson(
                json_['printer'] as core.Map<core.String, core.dynamic>)
            : null,
        printerId: json_.containsKey('printerId')
            ? json_['printerId'] as core.String
            : null,
      );