toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> mobile = new Map<String, dynamic>();
mobile['type'] = this.type;
mobile['kind'] = this.kind;
if (this.payload != null) {
mobile['payload'] = this.payload.toJson();
}
if (this.mobile != null) {
mobile['mobile'] = this.mobile.map((v) => v.toJson()).toList();
}
return mobile;
}