toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (comment != null) 'comment': comment!,
      if (filename != null) 'filename': filename!,
      if (homePage != null) 'homePage': homePage!,
      if (id != null) 'id': id!,
      if (licenseConcluded != null) 'licenseConcluded': licenseConcluded!,
      if (packageType != null) 'packageType': packageType!,
      if (sourceInfo != null) 'sourceInfo': sourceInfo!,
      if (summaryDescription != null)
        'summaryDescription': summaryDescription!,
      if (title != null) 'title': title!,
      if (version != null) 'version': version!,
    };