GetVersionsResponse.fromJson constructor

GetVersionsResponse.fromJson(
  1. Map<String, Object?> json
)

Implementation

GetVersionsResponse.fromJson(Map<String, Object?> json)
    : unstableFeatures = ((v) => v != null
          ? (v as Map<String, Object?>).map((k, v) => MapEntry(k, v as bool))
          : null)(json['unstable_features']),
      versions = (json['versions'] as List).map((v) => v as String).toList();