toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.accessRequestEnabled != null) {
    json[r'access_request_enabled'] = this.accessRequestEnabled;
  } else {
    json[r'access_request_enabled'] = null;
  }
  if (this.cameraDefaultOn != null) {
    json[r'camera_default_on'] = this.cameraDefaultOn;
  } else {
    json[r'camera_default_on'] = null;
  }
  if (this.cameraFacing != null) {
    json[r'camera_facing'] = this.cameraFacing;
  } else {
    json[r'camera_facing'] = null;
  }
  if (this.enabled != null) {
    json[r'enabled'] = this.enabled;
  } else {
    json[r'enabled'] = null;
  }
  if (this.targetResolution != null) {
    json[r'target_resolution'] = this.targetResolution;
  } else {
    json[r'target_resolution'] = null;
  }
  return json;
}