VideoEncodeAcceleratorCapability.fromJson constructor

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

Implementation

factory VideoEncodeAcceleratorCapability.fromJson(Map<String, dynamic> json) {
  return VideoEncodeAcceleratorCapability(
    profile: json['profile'] as String,
    maxResolution:
        Size.fromJson(json['maxResolution'] as Map<String, dynamic>),
    maxFramerateNumerator: json['maxFramerateNumerator'] as int,
    maxFramerateDenominator: json['maxFramerateDenominator'] as int,
  );
}