toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'clientId': clientId,
'clientSecret': clientSecret,
'sessionId': sessionId,
'environment': environment.index,
'phoneNumber': phoneNumber,
'phoneInputType': phoneInputType?.index,
'otpInputType': otpInputType?.index,
'userId': userId,
'userEventType': userEventType?.index,
'merchantId': merchantId,
'additionalAttributes': additionalAttributes,
};
}