RecommendationFeedback.fromJson constructor

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

Implementation

factory RecommendationFeedback.fromJson(Map<String, dynamic> json) {
  return RecommendationFeedback(
    codeReviewArn: json['CodeReviewArn'] as String?,
    createdTimeStamp: timeStampFromJson(json['CreatedTimeStamp']),
    lastUpdatedTimeStamp: timeStampFromJson(json['LastUpdatedTimeStamp']),
    reactions: (json['Reactions'] as List?)
        ?.whereNotNull()
        .map((e) => (e as String).toReaction())
        .toList(),
    recommendationId: json['RecommendationId'] as String?,
    userId: json['UserId'] as String?,
  );
}