DescribeContributorInsightsOutput.fromJson constructor

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

Implementation

factory DescribeContributorInsightsOutput.fromJson(
    Map<String, dynamic> json) {
  return DescribeContributorInsightsOutput(
    contributorInsightsRuleList:
        (json['ContributorInsightsRuleList'] as List?)
            ?.whereNotNull()
            .map((e) => e as String)
            .toList(),
    contributorInsightsStatus: (json['ContributorInsightsStatus'] as String?)
        ?.toContributorInsightsStatus(),
    failureException: json['FailureException'] != null
        ? FailureException.fromJson(
            json['FailureException'] as Map<String, dynamic>)
        : null,
    indexName: json['IndexName'] as String?,
    lastUpdateDateTime: timeStampFromJson(json['LastUpdateDateTime']),
    tableName: json['TableName'] as String?,
  );
}