toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => <String, dynamic>{
      'pubspec': pubSpec.toJson(),
      'github': github.toJson(),
      'homebrew': homebrew,
      'meta_path': optionalMetaFilePath,
      'templates': templates,
      'commit': commit,
      'change_list': optionalChangeList,
    }
      ..removeWhere((key, value) => value == null)
      ..putIfAbsent('metaFilePath', () => metaFilePath)
      ..putIfAbsent('changeList', () => changeList);