VideoDecodeAcceleratorCapability.fromJson constructor

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

Implementation

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