toJson method

  1. @override
Map<String, Object?> toJson()
override

Returns a JSON representation of this.

Implementation

@override
Map<String, Object?> toJson() => {
  'runtimeType': 'WitFile',
  'path': path,
  'contents': contents,
};