Level.fromJson constructor

Level.fromJson(
  1. Map json_
)

Implementation

Level.fromJson(core.Map json_)
    : this(
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        number: json_.containsKey('number')
            ? (json_['number'] as core.num).toDouble()
            : null,
      );