toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'type': type.value,
    'status': status.value,
    'paymentMethod': paymentMethod.value,
    'token': token,
    'credit': credit,
    'price': price,
    'createdAt': createdAt.toIso8601String(),
    'userId': userId,
    'campainId': campainId,
    'offerId': offerId,
  };
}