text: from rest_framework import serializers
  
  from mpesa.models import LNMOnline, C2BPayments
  
  
  class LNMOnlineSerializer(serializers.ModelSerializer):
      class Meta:
          model = LNMOnline
          fields = ("id",)
  
  
  class C2BPaymentSerializer(serializers.ModelSerializer):
      class Meta:
          model = C2BPayments
          fields = ("id",
                    "TransactionType",
                    "TransID",
                    "TransTime",
                    "TransAmount",
                    "BusinessShortCode",
                    "BillRefNumber",
                    "InvoiceNumber",
                    "OrgAccountBalance",
                    "ThirdPartyTransID",
                    "MSISDN",
                    "FirstName",
                    "MiddleName",
                    "LastName",
                    )
  