TopicRuleDestination.fromJson constructor

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

Implementation

factory TopicRuleDestination.fromJson(Map<String, dynamic> json) {
  return TopicRuleDestination(
    arn: json['arn'] as String?,
    createdAt: timeStampFromJson(json['createdAt']),
    httpUrlProperties: json['httpUrlProperties'] != null
        ? HttpUrlDestinationProperties.fromJson(
            json['httpUrlProperties'] as Map<String, dynamic>)
        : null,
    lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']),
    status: (json['status'] as String?)?.toTopicRuleDestinationStatus(),
    statusReason: json['statusReason'] as String?,
    vpcProperties: json['vpcProperties'] != null
        ? VpcDestinationProperties.fromJson(
            json['vpcProperties'] as Map<String, dynamic>)
        : null,
  );
}