toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final dependencyType = this.dependencyType;
  final versionRequirement = this.versionRequirement;
  return {
    if (dependencyType != null) 'dependencyType': dependencyType.toValue(),
    if (versionRequirement != null) 'versionRequirement': versionRequirement,
  };
}