toModel method

  1. @override
InvoiceModel toModel(
  1. InvoiceMessage grpcObject
)
override

Implementation

@override
InvoiceModel toModel(InvoiceMessage grpcObject) {
  final invoicemodel = InvoiceModel(
    accountNo: grpcObject.accountNo,
    amount: grpcObject.amount,
    currency: grpcObject.currency,
    info: grpcObject.info,
    expiration: grpcObject.expiration,
    lastName: grpcObject.lastName,
    firstName: grpcObject.firstName,
    middleName: grpcObject.middleName,
    city: grpcObject.city,
    street: grpcObject.street,
    house: grpcObject.house,
    building: grpcObject.building,
    apartment: grpcObject.apartment,
    isNameEditable: grpcObject.isNameEditable,
    isAddressEditable: grpcObject.isAddressEditable,
    isAmountEditable: grpcObject.isAmountEditable,
    emailNotification: grpcObject.emailNotification,
    smsPhone: grpcObject.smsPhone,
    shouldReturnInvoiceUrl: grpcObject.shouldReturnInvoiceUrl,
    lifeTime: grpcObject.lifeTime,
    invoiceNo: grpcObject.invoiceNo,
    status: grpcObject.status,
    created: grpcObject.created,
    cardInvoiceNo: grpcObject.cardInvoiceNo,
  );
  return invoicemodel;
}