Compatibility.fromJson constructor

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

Implementation

factory Compatibility.fromJson(Map<String, dynamic> json) {
  return Compatibility(
    clusterVersion: json['clusterVersion'] as String?,
    defaultVersion: json['defaultVersion'] as bool?,
    platformVersions: (json['platformVersions'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}