OperatingSystem.fromJson constructor

OperatingSystem.fromJson(
  1. Map json_
)

Implementation

OperatingSystem.fromJson(core.Map json_)
    : this(
        dartId: json_.containsKey('dartId')
            ? json_['dartId'] as core.String
            : null,
        desktop: json_.containsKey('desktop')
            ? json_['desktop'] as core.bool
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        mobile:
            json_.containsKey('mobile') ? json_['mobile'] as core.bool : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );