toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final bluePrimaryX = this.bluePrimaryX;
  final bluePrimaryY = this.bluePrimaryY;
  final greenPrimaryX = this.greenPrimaryX;
  final greenPrimaryY = this.greenPrimaryY;
  final maxContentLightLevel = this.maxContentLightLevel;
  final maxFrameAverageLightLevel = this.maxFrameAverageLightLevel;
  final maxLuminance = this.maxLuminance;
  final minLuminance = this.minLuminance;
  final redPrimaryX = this.redPrimaryX;
  final redPrimaryY = this.redPrimaryY;
  final whitePointX = this.whitePointX;
  final whitePointY = this.whitePointY;
  return {
    if (bluePrimaryX != null) 'bluePrimaryX': bluePrimaryX,
    if (bluePrimaryY != null) 'bluePrimaryY': bluePrimaryY,
    if (greenPrimaryX != null) 'greenPrimaryX': greenPrimaryX,
    if (greenPrimaryY != null) 'greenPrimaryY': greenPrimaryY,
    if (maxContentLightLevel != null)
      'maxContentLightLevel': maxContentLightLevel,
    if (maxFrameAverageLightLevel != null)
      'maxFrameAverageLightLevel': maxFrameAverageLightLevel,
    if (maxLuminance != null) 'maxLuminance': maxLuminance,
    if (minLuminance != null) 'minLuminance': minLuminance,
    if (redPrimaryX != null) 'redPrimaryX': redPrimaryX,
    if (redPrimaryY != null) 'redPrimaryY': redPrimaryY,
    if (whitePointX != null) 'whitePointX': whitePointX,
    if (whitePointY != null) 'whitePointY': whitePointY,
  };
}