DeviceSpec.fromJson constructor

DeviceSpec.fromJson(
  1. Map json_
)

Implementation

DeviceSpec.fromJson(core.Map json_)
    : this(
        screenDensity: json_.containsKey('screenDensity')
            ? json_['screenDensity'] as core.int
            : null,
        supportedAbis: json_.containsKey('supportedAbis')
            ? (json_['supportedAbis'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        supportedLocales: json_.containsKey('supportedLocales')
            ? (json_['supportedLocales'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );