SoftwareInfoDTO.fromJson constructor

SoftwareInfoDTO.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory SoftwareInfoDTO.fromJson(Map<String, Object?> json) {
  return SoftwareInfoDTO(
    links: json[r'_links'] != null
        ? SelfLinkDTO.fromJson(json[r'_links']! as Map<String, Object?>)
        : null,
    buildChangeSet: json[r'buildChangeSet'] as String?,
    buildDate: json[r'buildDate'] != null
        ? DateDTO.fromJson(json[r'buildDate']! as Map<String, Object?>)
        : null,
    isLicensedForUse: json[r'isLicensedForUse'] as bool? ?? false,
    platformVersion: json[r'platformVersion'] as String?,
    version: json[r'version'] as String?,
  );
}