toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['timeInHours'] = this.timeInHours;
data['time'] = this.timeInHours;
switch (this.type) {
case AuthorizeActionType.CAPTURE:
data['type'] = "CAPTURE";
break;
case AuthorizeActionType.VOID:
data['type'] = "VOID";
break;
default:
}
return data;
}