Hdr10Metadata.fromJson constructor
Hdr10Metadata.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Hdr10Metadata.fromJson(Map<String, dynamic> json) {
return Hdr10Metadata(
bluePrimaryX: json['bluePrimaryX'] as int?,
bluePrimaryY: json['bluePrimaryY'] as int?,
greenPrimaryX: json['greenPrimaryX'] as int?,
greenPrimaryY: json['greenPrimaryY'] as int?,
maxContentLightLevel: json['maxContentLightLevel'] as int?,
maxFrameAverageLightLevel: json['maxFrameAverageLightLevel'] as int?,
maxLuminance: json['maxLuminance'] as int?,
minLuminance: json['minLuminance'] as int?,
redPrimaryX: json['redPrimaryX'] as int?,
redPrimaryY: json['redPrimaryY'] as int?,
whitePointX: json['whitePointX'] as int?,
whitePointY: json['whitePointY'] as int?,
);
}