PublishedConfig.fromJson constructor
Read this payload from a decoded JSON object.
Implementation
factory PublishedConfig.fromJson(Map<String, dynamic> json) =>
PublishedConfig(
suite: json['suite'] as String,
helperKey: json['helperKey'] as String,
tokenKey: json['tokenKey'] as String,
vetterLabels: (json['vetterLabels'] as List<dynamic>)
.map((e) => e as String)
.toList(),
tokenLabels: (json['tokenLabels'] as List<dynamic>)
.map((e) => e as String)
.toList(),
dripPerTick: json['dripPerTick'] as int,
tickLength: json['tickLength'] as String,
events: (json['events'] as List<dynamic>)
.map((e) => PublishedEvent.fromJson(e as Map<String, dynamic>))
.toList(),
);