factory CdiInputSpecification.fromJson(Map<String, dynamic> json) { return CdiInputSpecification( resolution: (json['resolution'] as String?)?.toCdiInputResolution(), ); }