Delay.fromJson constructor

Delay.fromJson(
  1. Map<String, dynamic> json
)

Creates a Delay from JSON data.

Implementation

Delay.fromJson(Map<String, dynamic> json)
    : this(
        fixedDelay: json['fixedDelay'] != null
            ? parseDuration(json['fixedDelay'])
            : null,
        percentage: json['percentage'] != null
            ? Percent.fromJson(json['percentage'])
            : null,
        percent: json['percent'],
      );