EnvironmentImage.fromJson constructor

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

Implementation

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