OSDisk.fromJson constructor

OSDisk.fromJson(
  1. Map json_
)

Implementation

OSDisk.fromJson(core.Map json_)
    : this(
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        sizeGb:
            json_.containsKey('sizeGb') ? json_['sizeGb'] as core.int : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );