copyWith method

WhatsappPayload copyWith({
  1. String? from,
  2. String? to,
  3. String? body,
})

Implementation

WhatsappPayload copyWith({
  String? from,
  String? to,
  String? body,
}) =>
    WhatsappPayload(
      from: from ?? this.from,
      to: to ?? this.to,
      body: body ?? this.body,
    );