toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final userId = this.userId;
  final alexaForBusinessMetadata = this.alexaForBusinessMetadata;
  final licenseType = this.licenseType;
  final userType = this.userType;
  return {
    'UserId': userId,
    if (alexaForBusinessMetadata != null)
      'AlexaForBusinessMetadata': alexaForBusinessMetadata,
    if (licenseType != null) 'LicenseType': licenseType.toValue(),
    if (userType != null) 'UserType': userType.toValue(),
  };
}