toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'idempotencyKey': idempotencyKey,
      'reason': reason,
      'ok': ok,
      'deviceTime': deviceTime is DateTime ? (deviceTime as DateTime).millisecondsSinceEpoch : deviceTime,
      'note': ?note,
      'receiptId': ?receiptId,
      'error': ?error,
      'drawerId': ?drawerId,
      if (operator != null) 'operator': operator!.toJson(),
    };