fromJson static method
Returns a new RuleData instance and imports its values from
json
if it's non-null, null if json
is null.
Implementation
static RuleData? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return RuleData(
category: json[r'category'],
dispatcher: json[r'dispatcher'],
place: json[r'place'],
position: json[r'position'] == null ? null : json[r'position'].toDouble(),
service: json[r'service'],
);
}