factory AccelerationSettings.fromJson(Map<String, dynamic> json) { return AccelerationSettings( mode: (json['mode'] as String).toAccelerationMode(), ); }