RecommenderConfigurationResponse.fromJson constructor

RecommenderConfigurationResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory RecommenderConfigurationResponse.fromJson(Map<String, dynamic> json) {
  return RecommenderConfigurationResponse(
    creationDate: json['CreationDate'] as String,
    id: json['Id'] as String,
    lastModifiedDate: json['LastModifiedDate'] as String,
    recommendationProviderRoleArn:
        json['RecommendationProviderRoleArn'] as String,
    recommendationProviderUri: json['RecommendationProviderUri'] as String,
    attributes: (json['Attributes'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    description: json['Description'] as String?,
    name: json['Name'] as String?,
    recommendationProviderIdType:
        json['RecommendationProviderIdType'] as String?,
    recommendationTransformerUri:
        json['RecommendationTransformerUri'] as String?,
    recommendationsDisplayName: json['RecommendationsDisplayName'] as String?,
    recommendationsPerMessage: json['RecommendationsPerMessage'] as int?,
  );
}