UpdateOptions.fromJson constructor
UpdateOptions.fromJson(
- Map<String, dynamic> map
)
Implementation
factory UpdateOptions.fromJson(Map<String, dynamic> map) {
return UpdateOptions(
phoneNumber: map['phoneNumber'],
phoneInputType: map['phoneInputType'], // No conversion needed
otpInputType: map['otpInputType'], // No conversion needed
userId: map['userId'],
userEventType: map['userEventType'], // No conversion needed
merchantId: map['merchantId'],
additionalAttributes: Map<String, String>.from(map['additionalAttributes'] ?? {}),
);
}