Trigger.fromJson constructor

Trigger.fromJson(
  1. Map json_
)

Implementation

Trigger.fromJson(core.Map json_)
    : this(
        count: json_.containsKey('count') ? json_['count'] as core.int : null,
        percent: json_.containsKey('percent')
            ? (json_['percent'] as core.num).toDouble()
            : null,
      );