toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final tableName = this.tableName;
  final payload = this.payload;
  return {
    'tableName': tableName,
    if (payload != null) 'payload': payload,
  };
}