PaymentForm.fromObject constructor

PaymentForm.fromObject(
  1. Map object, {
  2. String? id,
})

Implementation

factory PaymentForm.fromObject(Map object, {String? id}) {
  return PaymentForm(
    code: object['code'],
    name: object['name'],
    added: object['added'],
    methodId: object['methodId'],
    id: (id ?? object['id'] ?? object['paymentFormId'])?.toString(),
  );
}