toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'requestType': 'AppleIdRequest',
'user': user,
'requestedOperation': requestedOperation!.value,
'requestedScopes':
requestedScopes?.map((scope) => scope.value).toList() ?? []
};
}