OTAUpdateFile.fromJson constructor

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

Implementation

factory OTAUpdateFile.fromJson(Map<String, dynamic> json) {
  return OTAUpdateFile(
    attributes: (json['attributes'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    codeSigning: json['codeSigning'] != null
        ? CodeSigning.fromJson(json['codeSigning'] as Map<String, dynamic>)
        : null,
    fileLocation: json['fileLocation'] != null
        ? FileLocation.fromJson(json['fileLocation'] as Map<String, dynamic>)
        : null,
    fileName: json['fileName'] as String?,
    fileType: json['fileType'] as int?,
    fileVersion: json['fileVersion'] as String?,
  );
}