PrinterResponse.fromMap constructor

PrinterResponse.fromMap(
  1. Map map
)

Implementation

factory PrinterResponse.fromMap(Map<dynamic, dynamic> map) => PrinterResponse(
      errorCode: ErrorCodeUtils.valueOf(map['errorCode']),
      statusInfo: map['statusInfo'] == null
          ? null
          : StatusInfo.fromMap(map['statusInfo']),
      settings: map['settings'] == null
          ? null
          : PrinterSettings.fromMap(map['settings']),
      message: map['message'],
    );