Action.fromJson constructor
Action.fromJson(
- Map data
Implementation
factory Action.fromJson(Map data) {
final json = JSON(data);
return Action(
name: json['name'].stringValue,
argument: json['argument'].listValue.map((e) => e.toString()).toList(),
index: json['index'].int ?? 0,
commandName: json['commandName'].string,
actionType: json['actionType'].string ?? 'dart',
);
}