toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
  if (this.inboxId != null) {
    json[r'inboxId'] = this.inboxId;
  } else {
    json[r'inboxId'] = null;
  }
    json[r'scope'] = this.scope;
    json[r'action'] = this.action;
    json[r'target'] = this.target;
    json[r'handler'] = this.handler;
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
  return json;
}