DomainPackageDetails.fromJson constructor

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

Implementation

factory DomainPackageDetails.fromJson(Map<String, dynamic> json) {
  return DomainPackageDetails(
    domainName: json['DomainName'] as String?,
    domainPackageStatus:
        (json['DomainPackageStatus'] as String?)?.toDomainPackageStatus(),
    errorDetails: json['ErrorDetails'] != null
        ? ErrorDetails.fromJson(json['ErrorDetails'] as Map<String, dynamic>)
        : null,
    lastUpdated: timeStampFromJson(json['LastUpdated']),
    packageID: json['PackageID'] as String?,
    packageName: json['PackageName'] as String?,
    packageType: (json['PackageType'] as String?)?.toPackageType(),
    packageVersion: json['PackageVersion'] as String?,
    referencePath: json['ReferencePath'] as String?,
  );
}