KafkaAction.fromJson constructor

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

Implementation

factory KafkaAction.fromJson(Map<String, dynamic> json) {
  return KafkaAction(
    clientProperties: (json['clientProperties'] as Map<String, dynamic>)
        .map((k, e) => MapEntry(k, e as String)),
    destinationArn: json['destinationArn'] as String,
    topic: json['topic'] as String,
    key: json['key'] as String?,
    partition: json['partition'] as String?,
  );
}