UpdateApplicationResponse.fromJson constructor

UpdateApplicationResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory UpdateApplicationResponse.fromJson(Map<String, dynamic> json) {
  return UpdateApplicationResponse(
    applicationId: json['applicationId'] as String?,
    author: json['author'] as String?,
    creationTime: json['creationTime'] as String?,
    description: json['description'] as String?,
    homePageUrl: json['homePageUrl'] as String?,
    isVerifiedAuthor: json['isVerifiedAuthor'] as bool?,
    labels: (json['labels'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    licenseUrl: json['licenseUrl'] as String?,
    name: json['name'] as String?,
    readmeUrl: json['readmeUrl'] as String?,
    spdxLicenseId: json['spdxLicenseId'] as String?,
    verifiedAuthorUrl: json['verifiedAuthorUrl'] as String?,
    version: json['version'] != null
        ? Version.fromJson(json['version'] as Map<String, dynamic>)
        : null,
  );
}