toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final error = this.error;
  final variables = this.variables;
  return {
    if (error != null) 'Error': error,
    if (variables != null) 'Variables': variables,
  };
}