toJson method

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

Serializes this source specification to JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
  'type': 'archive',
  'uri': uri.toString(),
  'sha256': sha256,
  if (subdirectory != null) 'subdirectory': subdirectory,
};