OSImage.fromJson constructor

OSImage.fromJson(
  1. Map json_
)

Implementation

OSImage.fromJson(core.Map json_)
    : this(
        applicableInstanceTypes: json_.containsKey('applicableInstanceTypes')
            ? (json_['applicableInstanceTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        code: json_.containsKey('code') ? json_['code'] as core.String : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        supportedNetworkTemplates:
            json_.containsKey('supportedNetworkTemplates')
                ? (json_['supportedNetworkTemplates'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
      );