ScreenDensity.fromJson constructor

ScreenDensity.fromJson(
  1. Map json_
)

Implementation

ScreenDensity.fromJson(core.Map json_)
    : this(
        densityAlias: json_.containsKey('densityAlias')
            ? json_['densityAlias'] as core.String
            : null,
        densityDpi: json_.containsKey('densityDpi')
            ? json_['densityDpi'] as core.int
            : null,
      );