toJson method
Converts the Context instance to a JSON map.
Returns a JSON map representation of the Context instance.
Implementation
Map<String, dynamic> toJson() {
try {
final Map<String, dynamic> data = {};
data["domain"] = domain;
data["action"] = action;
return data;
} catch (e) {
rethrow;
}
}