toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'name': name,
  'storage': storage?.toJson(),
  'calls': calls?.toJson(),
  'event': event?.toJson(),
  'constants': constants.map((c) => c.toJson()).toList(),
  'error': error?.toJson(),
  'index': index,
};