CompatibleKafkaVersion.fromJson constructor

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

Implementation

factory CompatibleKafkaVersion.fromJson(Map<String, dynamic> json) {
  return CompatibleKafkaVersion(
    sourceVersion: json['sourceVersion'] as String?,
    targetVersions: (json['targetVersions'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}