toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final componentName = this.componentName;
  final componentVersion = this.componentVersion;
  final versionRequirements = this.versionRequirements;
  return {
    if (componentName != null) 'componentName': componentName,
    if (componentVersion != null) 'componentVersion': componentVersion,
    if (versionRequirements != null)
      'versionRequirements': versionRequirements,
  };
}